Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial: Update matcher in component test test to catch single test case #40800

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading