Skip to content

Commit

Permalink
Update matcher to catch single test case
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed May 22, 2024
1 parent d9b98cd commit 32d011e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import io.quarkus.builder.BuildStep;

// needs to be in a class of it's own in order to avoid java.lang.IncompatibleClassChangeError
// needs to be in a class of its own in order to avoid java.lang.IncompatibleClassChangeError
public abstract class ProdModeTestBuildStep implements BuildStep {

private final Map<String, Object> testContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ public class TestModeContinuousTestingMavenTestUtils extends ContinuousTestingMa
// Example output we look for
// 1 test failed (1 passing, 0 skipped), 1 test was run in 217ms. Tests completed at 21:22:34 due to changes to HelloResource$Blah.class and 1 other files.
// All 2 tests are passing (0 skipped), 2 tests were run in 1413ms. Tests completed at 21:22:33.
// All 1 test is passing (0 skipped), ...
// Windows log, despite `quarkus.console.basic=true', might contain terminal control symbols, colour decorations.
// e.g. the matcher is then fighting: 1 test failed (1 passing, 0 skipped)
private static final Pattern ALL_PASSING = Pattern.compile(
"(?:\\e\\[[\\d;]+m)*All (\\d+) tests are passing \\((\\d+) skipped\\)",
"(?:\\e\\[[\\d;]+m)*All (\\d+) tests? (?:are|is) passing \\((\\d+) skipped\\)",
Pattern.MULTILINE);
private static final Pattern SOME_PASSING = Pattern
.compile(
Expand Down

0 comments on commit 32d011e

Please sign in to comment.