Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Content Zone
maxLevel2
minLevel2
locationtop
typeflat
separatorpipe

This goal is provided by the test impact analysis plugin shipped with Jtest and allows you to perform change-based testing of your project (see Test Impact Analysis).

Required Parameters

NameUser PropertyAccepted values / data typeDescription

Anchor
referenceCoverageFile
referenceCoverageFile
referenceCoverageFile

jtest.referenceCoverageFilePath | URL

The path to the coverage.xml file generated by Jtest during analysis. The file contains the coverage data collected during the run.

If you specify a URL, the file is downloaded to the Jtest execution directory and removed every time Gradle is executed with the clean command. To change the default download location, configure the referenceStore parameter.

The default is: <BUILD_DIRECTORY>/jtest/reference-store/coverage.xml

Anchor
referenceReportFile
referenceReportFile
referenceReportFile

jtest.referenceReportFilePath | URL

The path to the report.xml file generated by Jtest during analysis. The file contains information about unit tests executed during the run.

If you specify a URL, the file is downloaded to the Jtest execution directory and removed every time Gradle is executed with the clean command. To change the default download location, configure the referenceStore parameter.

The default is: <BUILD_DIRECTORY>/jtest/reference-store/report.xml

jtestHomejtest.homePath

The path to the Jtest installation directory. It is not required if the Jtest installation directory has already been configured with the Gradle settings or the JTEST_HOME environment variable.

Optional Parameters

NameUser PropertyAccepted values / data typeDescription

Anchor
referenceStore
referenceStore
referenceStore

jtest.referenceStorePath

The path to the cache directory where the reference files are stored when downloaded from URLs specified with the referenceCoverageFile and referenceReportFile parameters.

The cache files are used as a baseline for test impact analysis until they are removed from the specified directory. When removed, they are re-downloaded form the URLs.

runFailedTestsjtest.runFailedTeststrue | false

Enables including all failing tests form the previous run in the test run, even if they were not affected by the changes.

The default is: false

runModifiedTestsjtest.runModifiedTeststrue | false

Enables including new and modified tests (even if they were not affected by production code changes) in the test run.

The default is: true

settingsjtest.settingsPath

The path to the .properties file that includes custom configuration settings.


settingsListjtest.settingsList

A list of settings parameters. The multiple files specified with this setting are merged before execution.

The settings configured in the jtest.properties file located in the Jtest installation directory are automatically included.