Maven goal to generate test report using damage control

1k views Asked by At

I'm using Spock to test a Java application. I would like to generate test reports, in html, using damage-control

What maven goal shoud be executed to generate the reports?

2

There are 2 answers

2
rvazquezglez On BEST ANSWER

It generated the reports running:

    mvn com.github.damage-control.report:damage-control-maven-plugin:report
1
Ilya On

You should use goal provided by plugin.
Maven provides only phase's, not goals
So you should use phase test and goal report.

  <execution>
    <phase>test</phase>
    <goals>
      <goal>report</goal>
    </goals>
  </execution>  

report goal is declared in this file DamageControlMojo.

/**
 * @goal report
 */