Skip to content

Commit

Permalink
Merge pull request #17719 from stuartwdouglas/17717
Browse files Browse the repository at this point in the history
quarkus:test output does not always start
  • Loading branch information
stuartwdouglas authored Jun 7, 2021
2 parents c8cd44a + caecd6f commit 64372c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object, BuildResult> {
@Override
public void accept(Object o, BuildResult buildResult) {
QuarkusConsole.start();
TestSupport.instance().get().start();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ LogCleanupFilterBuildItem handle() {
}

@BuildStep(onlyIf = IsDevelopment.class)
@Produce(TestSetupBuildItem.class)
void setupConsole(TestConfig config, BuildProducer<TestListenerBuildItem> testListenerBuildItemBuildProducer) {
if (!TestSupport.instance().isPresent() || config.continuousTesting == TestConfig.Mode.DISABLED
|| config.flatClassPath) {
Expand Down

0 comments on commit 64372c2

Please sign in to comment.