...
- Ensure that the Jtest Plugin for Gradle is set up (see Configuring the Jtest Plugin for Gradle).
Execute the jtest goal task. Your command line may resemble the following:
Code Block gradle jtest -I PATH/TO/JTEST/integration/gradle/init.gradle
The Jtest Plugin for Gradle will collect the necessary build data in the .json file, and analyze your code depending on the test configuration you provided.
- Review the analysis results (see Reviewing Results).
...
You can include unit test results in the Jtest report by running your tests with the jtest goal task, and the dedicated Unit Tests
built-in test configuration:
- 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 goals Gradle. Your command line may resemble the following:
Anchor | ||||
---|---|---|---|---|
|
You can collect coverage information during execution of unit tests by your tests with the jtest and jtest-agent goals tasks, and the dedicated Unit Tests
built-in test configuration:
...
Jtest's coverage agent allows you to collect coverage data during manual or automated tests performed on a running application. See See Application Coverage for information about collecting application coverage with Jtest.