Versions Compared

Key

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

...

  1. Ensure that the Jtest Plugin for Gradle is set up (see Configuring the Jtest Plugin for Gradle).
  2. 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.

  3. 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:

  1. Ensure that the Jtest Plugin for Gradle is set up (Configuring the Jtest Plugin for Gradle).
  2. Execute Gradle tasks in the following order:
    - the test (or build) 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"
  3. Add the test (or build) task to your command line to execute unit tests.
  4. Execute jtest task.
  5. Execute the jtest-agent and jtest goals tasks Gradle. Your command line may resemble the following:

...

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:

...