Class JUnitReporterOperation


@NullMarked public class JUnitReporterOperation extends AbstractOperation<JUnitReporterOperation>
An operation that parses JUnit XML reports and prints test failure information grouped by test class.

Usage:

 @BuildCommand(summary = "Runs the JUnit reporter")
 public void reporter() throws Exception {
     new JUnitReporterOperation()
             .fromProject(this)
             .failOnSummary(true)
             .reportFile("build/test-results/test/TEST-junit-jupiter.xml")
             .execute();
 }
 

Arguments:

When configured via fromProject(BaseProject), the following arguments are consumed:
  • --all - Print full details for all failed tests
  • --index=N[.M] - Print details for test N, or parameterized subtest N.M
If no argument is provided and failures exist, a summary is printed.
Since:
1.0
Author:
Erik C. Thauvin
  • Constructor Details

    • JUnitReporterOperation

      public JUnitReporterOperation()
  • Method Details