From 68e85dd85bfd1a0ef71fafb22b4530cf82fb5dc1 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 24 Aug 2021 13:39:28 +1000 Subject: [PATCH] Resuming tests after pause is broken Fixes #19596 --- .../deployment/dev/testing/TestConsoleHandler.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestConsoleHandler.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestConsoleHandler.java index cdb39a59eb6e7..8367de53f3438 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestConsoleHandler.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestConsoleHandler.java @@ -90,7 +90,10 @@ private void setupPausedConsole() { public void run() { if (lastResults == null) { testsStatusOutput.setMessage(BLUE + "Starting tests" + RESET); + } else { + testsStatusOutput.setMessage(null); } + setupTestsRunningConsole(); TestSupport.instance().get().start(); } })); @@ -103,8 +106,10 @@ private void setupFirstRunConsole() { } else { testsStatusOutput.setMessage(BLUE + "Running tests for the first time" + RESET); } - consoleContext.reset(); - addTestOutput(); + if (firstRun) { + consoleContext.reset(); + addTestOutput(); + } } void addTestOutput() {