Skip to content

Commit 26631c8

Browse files
authored
Force color output with IOCapture. (#47)
1 parent ff8793f commit 26631c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ParallelTestRunner.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
998998
if VERSION >= v"1.13.0-DEV.1033"
999999
Test.print_test_results(io_ctx.stdout, o_ts, 1)
10001000
else
1001-
c = IOCapture.capture() do
1001+
c = IOCapture.capture(; io_ctx.color) do
10021002
Test.print_test_results(o_ts, 1)
10031003
end
10041004
print(io_ctx.stdout, c.output)
@@ -1011,7 +1011,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
10111011
if VERSION >= v"1.13.0-DEV.1033"
10121012
Test.print_test_errors(io_ctx.stdout, o_ts)
10131013
else
1014-
c = IOCapture.capture() do
1014+
c = IOCapture.capture(; io_ctx.color) do
10151015
Test.print_test_errors(o_ts)
10161016
end
10171017
print(io_ctx.stdout, c.output)

0 commit comments

Comments
 (0)