From caecd6ffa4ecae76c294d0369c6eeb3db083076c Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Mon, 7 Jun 2021 09:56:22 +1000 Subject: [PATCH] quarkus:test output does not always start Fixes #17717 --- .../java/io/quarkus/deployment/dev/testing/TestHandler.java | 3 ++- .../quarkus/deployment/dev/testing/TestTracingProcessor.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestHandler.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestHandler.java index 84ca23784f7ec..c810bbb68ce9f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestHandler.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestHandler.java @@ -3,11 +3,12 @@ import java.util.function.BiConsumer; import io.quarkus.builder.BuildResult; +import io.quarkus.dev.console.QuarkusConsole; public class TestHandler implements BiConsumer { @Override public void accept(Object o, BuildResult buildResult) { + QuarkusConsole.start(); TestSupport.instance().get().start(); - } } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestTracingProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestTracingProcessor.java index a267151241fa9..502a21101d3a0 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestTracingProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/TestTracingProcessor.java @@ -44,6 +44,7 @@ LogCleanupFilterBuildItem handle() { } @BuildStep(onlyIf = IsDevelopment.class) + @Produce(TestSetupBuildItem.class) void setupConsole(TestConfig config, BuildProducer testListenerBuildItemBuildProducer) { if (!TestSupport.instance().isPresent() || config.continuousTesting == TestConfig.Mode.DISABLED || config.flatClassPath) {