Skip to content

Commit 2734837

Browse files
committed
Enable colors when running integration tests
1 parent 46c6f43 commit 2734837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ defmodule Sentry.Mixfile do
150150
])
151151
)
152152

153-
integration_dir = Path.join("test_integrations", integration)
153+
color_arg = if IO.ANSI.enabled?(), do: "--color", else: "--no-color"
154154

155155
{_, status} =
156-
System.cmd("mix", ["test" | args],
156+
System.cmd("mix", ["test", color_arg | args],
157157
into: IO.binstream(:stdio, :line),
158158
cd: Path.join("test_integrations", integration)
159159
)

0 commit comments

Comments
 (0)