Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
8599d312
Commit
8599d312
authored
Feb 02, 2021
by
Abseil Team
Committed by
Dino Radaković
Feb 05, 2021
Browse files
Googletest export
Fix terminal output formatting in advanced guide PiperOrigin-RevId: 355233178
parent
fd873f6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
32 deletions
+19
-32
docs/advanced.md
docs/advanced.md
+19
-32
No files found.
docs/advanced.md
View file @
8599d312
...
...
@@ -2224,38 +2224,25 @@ random seed and re-shuffle the tests in each iteration.
googletest can use colors in its terminal output to make it easier to spot the
important information:
<code>
...
<br/>
<font
color=
"green"
>
[----------]
</font><font
color=
"black"
>
1 test from
FooTest
</font><br/>
<font
color=
"green"
>
[ RUN
]
</font><font
color=
"black"
>
FooTest.DoesAbc
</font><br/>
<font
color=
"green"
>
[
OK ]
</font><font
color=
"black"
>
FooTest.DoesAbc
</font><br/>
<font
color=
"green"
>
[----------]
</font><font
color=
"black"
>
2 tests from BarTest
</font><br/>
<font
color=
"green"
>
[ RUN
]
</font><font
color=
"black"
>
BarTest.HasXyzProperty
</font><br/>
<font
color=
"green"
>
[
OK ]
</font><font
color=
"black"
>
BarTest.HasXyzProperty
</font><br/>
<font
color=
"green"
>
[ RUN
]
</font><font
color=
"black"
>
BarTest.ReturnsTrueOnSuccess ... some error messages ...
</font><br/>
<font
color=
"red"
>
[
FAILED ]
</font><font
color=
"black"
>
BarTest.ReturnsTrueOnSuccess ...
</font><br/>
<font
color=
"green"
>
[==========]
</font><font
color=
"black"
>
30 tests from 14 test suites ran.
</font><br/>
<font
color=
"green"
>
[
PASSED ]
</font><font
color=
"black"
>
28 tests.
</font><br/>
<font
color=
"red"
>
[
FAILED ]
</font><font
color=
"black"
>
2 tests, listed below:
</font><br/>
<font
color=
"red"
>
[
FAILED ]
</font><font
color=
"black"
>
BarTest.ReturnsTrueOnSuccess
</font><br/>
<font
color=
"red"
>
[
FAILED ]
</font><font
color=
"black"
>
AnotherTest.DoesXyz
<br/>
<br/>
<pre>
...
<font
color=
"green"
>
[----------]
</font>
1 test from FooTest
<font
color=
"green"
>
[ RUN ]
</font>
FooTest.DoesAbc
<font
color=
"green"
>
[ OK ]
</font>
FooTest.DoesAbc
<font
color=
"green"
>
[----------]
</font>
2 tests from BarTest
<font
color=
"green"
>
[ RUN ]
</font>
BarTest.HasXyzProperty
<font
color=
"green"
>
[ OK ]
</font>
BarTest.HasXyzProperty
<font
color=
"green"
>
[ RUN ]
</font>
BarTest.ReturnsTrueOnSuccess
... some error messages ...
<font
color=
"red"
>
[ FAILED ]
</font>
BarTest.ReturnsTrueOnSuccess
...
<font
color=
"green"
>
[==========]
</font>
30 tests from 14 test suites ran.
<font
color=
"green"
>
[ PASSED ]
</font>
28 tests.
<font
color=
"red"
>
[ FAILED ]
</font>
2 tests, listed below:
<font
color=
"red"
>
[ FAILED ]
</font>
BarTest.ReturnsTrueOnSuccess
<font
color=
"red"
>
[ FAILED ]
</font>
AnotherTest.DoesXyz
2 FAILED TESTS
</font>
</code>
</pre>
You can set the
`GTEST_COLOR`
environment variable or the
`--gtest_color`
command line flag to
`yes`
,
`no`
, or
`auto`
(the default) to enable colors,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment