Merge pull request #5029 from nigredo-tori/unittest-colors
Use default colors for test and suite names
This commit is contained in:
commit
26f0c10c6b
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ proc startSuite(name: string) =
|
||||||
template rawPrint() = echo("\n[Suite] ", name)
|
template rawPrint() = echo("\n[Suite] ", name)
|
||||||
when not defined(ECMAScript):
|
when not defined(ECMAScript):
|
||||||
if colorOutput:
|
if colorOutput:
|
||||||
styledEcho styleBright, fgBlue, "\n[Suite] ", fgWhite, name
|
styledEcho styleBright, fgBlue, "\n[Suite] ", resetStyle, name
|
||||||
else: rawPrint()
|
else: rawPrint()
|
||||||
else: rawPrint()
|
else: rawPrint()
|
||||||
|
|
||||||
|
|
@ -159,7 +159,7 @@ proc testDone(name: string, s: TestStatus, indent: bool) =
|
||||||
of FAILED: fgRed
|
of FAILED: fgRed
|
||||||
of SKIPPED: fgYellow
|
of SKIPPED: fgYellow
|
||||||
else: fgWhite
|
else: fgWhite
|
||||||
styledEcho styleBright, color, prefix, "[", $s, "] ", fgWhite, name
|
styledEcho styleBright, color, prefix, "[", $s, "] ", resetStyle, name
|
||||||
else:
|
else:
|
||||||
rawPrint()
|
rawPrint()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue