Skip to content

Commit

Permalink
Print failing cases
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Jan 17, 2024
1 parent 12ce6bc commit 6417d01
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ public void testCoverage() {

System.out.println("Failed examples by section (total " + fails.size() + "):");
printCountsBySection(fails);
System.out.println();

System.out.println("Failed examples:");
for (Example fail : fails) {
System.out.println("Failed: " + fail);
System.out.println("````````````````````````````````");
System.out.print(fail.getSource());
System.out.println("````````````````````````````````");
System.out.println();
}

int expectedPassed = 621;
assertTrue("Expected at least " + expectedPassed + " examples to pass but was " + passes.size(), passes.size() >= expectedPassed);
Expand Down

0 comments on commit 6417d01

Please sign in to comment.