...
- Ensure that the Jtest Plugin for Gradle is set up (Configuring the Jtest Plugin for Gradle).
Execute Gradle tasks in the following order:
- thetest
(orbuild
) task to ensure that unit tests are executed
- the jtest task
Your command line may resemble the following:Code Block gradle clean test jtest -Djtest.config="builtin://Unit Tests"
- Add the test (or build) task to your command line to execute unit tests.
- Execute jtest task.
- Execute the jtest-agent and jtest tasks Gradle. Your command line may resemble the following:
Anchor | ||||
---|---|---|---|---|
|
...
If you perform test impact analysis multiple times in same local environment, add the
--no-daemon
option to your command line.
Integrating with the Test Impact Analysis Plugin
The init.gradle
script shipped with Jtest allows you to integrate the test impact analysis plugin with Gradle – without having to modify your Gradle build script. To integrate Gradle with the plugin, pass the location of the the init.gradle
script with the -I
option to your command line:
...