2 Replies Latest reply on Aug 15, 2007 4:42 AM by Tom Baeyens

    coverage tests

    Tom Baeyens Master

      if you want to run the coverage tests, here's what you gotta do:

      ant test.coverage
      ant view.coverage


      Note that you cannot combine the 2 in one ant run. Cause clover is configured with flushing the coverage report upon close of the JVM. So the coverage HTML report can only be generated after the JVM has closed and clover has flushed the coverage report db to disk.

      let me know if it gives problems for you.

        • 1. Re: coverage tests
          porcherg Novice

          When I try to run the coverage tests, I have the following error:

          BUILD FAILED
          /home/porcherg/workspace/build/project.build.xml:80: Problem: failed to create task or type clover-setup
          Cause: The name is undefined.
          Action: Check the spelling.
          Action: Check that any custom tasks/types have been declared.
          Action: Check that any <presetdef>/<macrodef> declarations have taken place.


          Maybe something should be added to tell ant where to find the tasks definitions ?

          Guillaume

          • 2. Re: coverage tests
            Tom Baeyens Master

            Ah.. yes i forgot to mention this:

            http://repository.jboss.com/jbpm/clover/

            Both the clover.jar and the license file should be put in the lib folder of your ant installation. In case you run ant from within eclipse, make sure to refresh the ant home classpath thing so that the library and license file show up in the list.