...
Table of Contents | ||
---|---|---|
|
Overview
Jtest Engine is launched by running jtestcli.exe
located in the Jtest installation directory. In the typical workflow, the executable is run from the dedicated plug-ins for the supported build systems, such as Maven,Ant and Gradle, but it can also be run manually the from the command line.
...
Run jtestcli.exe
from the command line to launch Jtest Engine. You must at the minimum include a test configuration and specify the data file location to analyze code. See Configuring Test Configurations and Specifying Test Data Location for more information.
...
Code Block |
---|
jtestcli.exe -settings settings.properties -config "builtin://Recommended Rules" -data demo.data.json -report report |
Anchor Specifying Test Data Location Specifying Test Data Location
Specifying Test Data Location
Specifying Test Data Location | |
Specifying Test Data Location |
Use the -data
switch to point directly to a *.json
data file object generated by the build system plugin. The automatically-generated *.json
data file provides the same information as the workspace in a format specific to Jtest Engine:
Code Block |
---|
-data file |
Build system plug-ins automatically add the data argument and include the value they generate, so there is no need to add it to the plug-in configuration.
...
Code Block |
---|
<showdetails>true</showdetails> |
About Error Codes
Jtest returns error exit codes (other than 0) when the following occurs:
- Jtest is executed without a license.
- A test process exits with an internal exception.
- Command-line is malformed or refers to a resource that does not exist. See .Configuring+the+Test+Scope+v10.4.0.
...