Hi all,

I've been faced in various situations where I am running the unit tests over
and over..  The typical situation is when I do a deploy, I build the
artifact, and then build the site docs.  This means the unit tests are run
at least twice.  However, as far as the site docs are concerned, they only
need the test-reports/ directory to be populated.  I was thinking of adding
a property to the junit-report plugin that was called something like:

maven.junit.test.runonce

If true, and the xml unit test files existed, then they would be used, other
if set to false, or the files are missing then the test:test goal would be
called...?


Alternatively, I was kicking around adding

maven.test.runonce

and if that is true, then the test:test goal would only run if it hadn't run
before..  I am doing something similiar by putting a postGoal on test:test
in my individual maven.xml files:

  <postGoal name="test:test">
        <j:set var="maven.test.skip" value="true"/>
  </postGoal>

I'm also playing around with just including the Jcoverage report and the
Junit report elements, as the xml generated by JCoverage is all that is
needed for Junit report to do it's thing.

Opinions?

Eric Pugh


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to