We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NO_COLOR
1 parent a170306 commit 1e060d0Copy full SHA for 1e060d0
junit-start/src/main/java/org/junit/start/JUnit.java
@@ -58,7 +58,9 @@ private static void run(DiscoverySelector selector) {
58
var listener = new SummaryGeneratingListener();
59
var charset = Charset.defaultCharset();
60
var writer = new PrintWriter(System.out, true, charset);
61
- var printer = new TreePrintingListener(writer, ColorPalette.DEFAULT, Theme.valueOf(charset));
+ var palette = System.getenv("NO_COLOR") != null ? ColorPalette.NONE : ColorPalette.DEFAULT;
62
+ var theme = Theme.valueOf(charset);
63
+ var printer = new TreePrintingListener(writer, palette, theme);
64
var request = request().selectors(selector).forExecution() //
65
.listeners(listener, printer) //
66
.build();
0 commit comments