User manual

camel test agent start

Starts the Citrus agent as a server

This command is provided by the test plugin. Install it with camel plugin add test.

Usage

camel test agent start [options]

Options

Option Description Default Type

--config-class

Configuration class name.

String

--dep

Set of additional Maven dependencies that should be loaded with the agent.

String[]

--engine

Name of the test engine that is used ti run tests. One of junit, junit-jupiter, junit4, testng, cucumber

String

--includes

Includes test name pattern.

String[]

--inspect-code

When enabled the source code gets analyzed for required modules and dependencies that are added to the classpath.

true

String

--modules

Comma delimited list of additional Citrus modules that should be loaded with the agent.

String

--offline

When enabled there will be no attempts to resolve Maven artifacts via internet connection.

String

--packages

Test package name to include in the test run.

String[]

--port

Server port.

String

--property

Default System property to set before the test run.

String[]

--reset

Should the test engine reset the suite state for each run.

true

String

--skip-tests

Should the server skip the test run at startup.

String

--system-exit

Should the server exit based on success or failure of the test run.

String

--test-jar

Path to a Java archive that holds tests to run.

String

--time-to-live

If this time is set the server automatically terminates after the given time.

String

--verbose

Should the test engine print verbose test summary information.

true

String

--work-directory

The working directory used by the file based test engines to load file resources from.

String

-h,--help

Display the help and sub-commands

boolean