...
Code Block |
---|
java -jar jtestcov.jar -selenic -app c:/<PATH_TO_APPLICATION>/parabank.war -include com/parasoft/parabank/parasoft/** -settings c:/<PATH_TO_LICENSE_FILE>/license.properties |
...
The following table describes all properties that can be set for the agent:
jtest.agent.runtimeData | Specifies a location on the application server for the agent to store the coverage data it collects at runtime. The following example will create files in the in
|
---|---|
jtest.agent.includes | A comma-separated list of patterns that specify classes to be instrumented. The following wildcards are supported:
In the following example, all classes from the
|
jtest.agent.excludes | A comma-separated list of patterns that specify classes to be excluded from instrumentation. The following wildcards are supported:
In the following example, all classes from the
|
jtest.agent.autostart | Enables/disables automatic runtime data collection. The default is true . |
jtest.agent.port | Sets up agent communication port. The default is 8050 . |
jtest.agent.debug | Enables/disables verbose output to console. The default is false . |
jtest.agent.enableMultiuserCoverage | Enables/disables collecting web application coverage for multiple users. The default is |
jtest.agent.autoloadMultiuserLibs | Enables/disables automatic loading of multiuser libraries (OpenTelemetry javaagent) when jtest.agent.enableMultiuserCoverage is set to true. The default value is true . |
jtest.agent.serverEnabled | Activates the agent. |
jtest.agent.enableJacoco | Enables the agent to collect coverage using the JaCoCo engine. The default is false. |
When the properties are configured, add a -javaagent
argument when starting your application server to attach the agent and include the agent configuration file:
...