Description:
Jtest execution task
Name | Type | Description |
buildscript | String | Executes the specified build script prior to any testing |
clean | boolean | Pass clean to the command line client Default value is: true |
config | String | Specifies test configuration (ie. config=source://configuration) |
data | File | Specifies the location of the workspace directory to use Default value is temporary directory |
failOnViolation | boolean | Fail the build by returning a non-zero exit code if any violations are reported |
filters | String | Allows the include and exclude parameters to be specified in a properties file |
ignoreErrors | boolean | Set to true if you don't want to kill the build when an error occurs |
importArgument | String | Argument for the -import option Default value is: "." |
javaHome | String | Specifies home directory of Java |
jtestHome | String | Specifies home directory of Jtest |
jtestSkip | boolean | Skips Jtest execution |
jtestTimeout | long | Timeout in seconds Default value is: 1800 |
localsettings | File | Reads the local setting file for global preferences, such as Report Center, email, and Team Server settings Default value is: $basedir/localsettings.properties |
monitorref | reference | Reference to a previously declared monitor, see monitor |
noImport | boolean | Skip the workspace import stage Default value is: false |
nobuild | boolean | Prevents rebuilding the project before testing it |
overwrite | boolean | Overwrite existing eclipse classpath file. Behavior can be changed in projectDescription |
prefs | String | Reads the preference URL to import Eclipse workspace preferences |
publish | boolean | Publishes the reports to the Team Server |
report | String | Relative path to destination for report file Default value is: "report/parasoft/test.html" |
showdetails | boolean | Prints detailed test progress information |
skip | boolean | Skip Parasoft Test |
test | String | Add this pattern to the includes list, useful for debugging tests |
vmName | String | vm to configure eclipse project(s) with. Behavior can be changed in projectDescription |
exclude | String | Specifies packages and classes to be excluded during testing |
import | String | Argument for the -import option |
include | String | Specifies the packages and classes to be included during testing |
projectDescription | ProjectDescription | Projects to test |
resource | String | Specifies the path to the workspace resource to test |
vmarg | String | Additional vm arguments to pass the java vm |
Specifies the path to the workspace resource to test
Example --- <parasoft:jtest> <resource>Project1</resource> <resource>Project2</resource> </parasoft:jtest> ---
Specifies location of the project(s) to be imported, allows multiple projects to be imported separately
Example --- <parasoft:jtest> <import>src/project1/import> <import>src/project2</import> </parasoft:jtest> ---
Specifies packages and classes to be included during testing
Example --- <parasoft:jtest> <include>org/example/**/MyClass</include> <include>org/example/**/MyUtilClass</include> </parasoft:jtest> ---
Specifies packages and classes to be excluded during testing
Example --- <parasoft:jtest> <exclude>org/example/**/MyClass</exclude> <exclude>org/example/**/MyUtilClass</exclude> </parasoft:jtest> ---
Additional vm arguments to pass the java vm
Example --- <parasoft:jtest> <vmarg>-Xmx1024m</vmarg> <vmarg>-XX:MaxPermSize=256m</vmarg> </parasoft:jtest> ---
Projects to test
Attributes
Example --- <parasoft:jtest> <projectDescription basedir="src/proj1" name="MyProject" javacref="proj1.javac" /> </parasoft:jtest> ---