Versions Compared

Key

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

...

  • dotTEST or Jtest 10.4.0 or higher
  • Coverage Agent Manager (CAM) or SOAtest
  • Parasoft DTP

Application Coverage Workflow

...

Anchor
static_jtest
static_jtest
Generating Static Coverage with Jtest

The static coverage file will be is included in the a monitor.zip package that is generated during the build process by the Jtest Plugin for Maven, Gradle, or Ant.

  1. Add the monitor task or goal to your build command.Execute an appropriate command in the AUT's main directory:

    Maven

    Code Block
    mvn package jtest:monitor

    Gradle

    Code Block
    gradle assemble jtest-monitor -I [INSTALL]/integration/gradle/init.gradle

    Ant

    Code Block
    ant -lib [INSTALL]/integration/ant/jtest-ant-plugin.jar -listener com.parasoft.Listener jtest-monitor
    Info

    Ant requires all classes to be compiled before the monitor task is executed. Modify your project prior to the build and configure the task to ensure the correct sequence. The following example shows how the target can be configured:

    <target name="jtest-monitor" depends="compile">
                 <jtest:monitor/>
    </target>

    Maven

    Code Block
    mvn package jtest:monitor

    Gradle

    Code Block
    gradle assemble jtest-monitor -I [INSTALL]/integration/gradle/init.gradle

    Ant

    Code Block
    ant -lib [INSTALL]/integration/ant/jtest-ant-plugin.jar -listener com.parasoft.Listener jtest-monitor
    Info

    Ant requires all classes to be compiled before the monitor task is executed. Modify your project prior to the build and configure the task to ensure the correct sequence. The following example shows how the target can be configured:

    <target name="jtest-monitor" depends="compile">
                 <jtest:monitor/>
    </target>

  2. Execute the build command in the AUT's main directory.
    (info) The location of the monitor.zip package that contains the static_coverage.xml file will be printed to the console.
  3. Extract the contents of the monitor.zip package to the server machine.

...