Googletest export
Fix terminal output formatting in advanced guide PiperOrigin-RevId: 355233178
This commit is contained in:
parent
fd873f6d7d
commit
8599d312ce
@ -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
|
googletest can use colors in its terminal output to make it easier to spot the
|
||||||
important information:
|
important information:
|
||||||
|
|
||||||
<code>
|
<pre>...
|
||||||
...<br/>
|
<font color="green">[----------]</font> 1 test from FooTest
|
||||||
<font color="green">[----------]</font><font color="black"> 1 test from
|
<font color="green">[ RUN ]</font> FooTest.DoesAbc
|
||||||
FooTest</font><br/>
|
<font color="green">[ OK ]</font> FooTest.DoesAbc
|
||||||
<font color="green">[ RUN ]</font><font color="black">
|
<font color="green">[----------]</font> 2 tests from BarTest
|
||||||
FooTest.DoesAbc</font><br/>
|
<font color="green">[ RUN ]</font> BarTest.HasXyzProperty
|
||||||
<font color="green">[ OK ]</font><font color="black">
|
<font color="green">[ OK ]</font> BarTest.HasXyzProperty
|
||||||
FooTest.DoesAbc </font><br/>
|
<font color="green">[ RUN ]</font> BarTest.ReturnsTrueOnSuccess
|
||||||
<font color="green">[----------]</font><font color="black">
|
... some error messages ...
|
||||||
2 tests from BarTest</font><br/>
|
<font color="red">[ FAILED ]</font> BarTest.ReturnsTrueOnSuccess
|
||||||
<font color="green">[ RUN ]</font><font color="black">
|
...
|
||||||
BarTest.HasXyzProperty </font><br/>
|
<font color="green">[==========]</font> 30 tests from 14 test suites ran.
|
||||||
<font color="green">[ OK ]</font><font color="black">
|
<font color="green">[ PASSED ]</font> 28 tests.
|
||||||
BarTest.HasXyzProperty</font><br/>
|
<font color="red">[ FAILED ]</font> 2 tests, listed below:
|
||||||
<font color="green">[ RUN ]</font><font color="black">
|
<font color="red">[ FAILED ]</font> BarTest.ReturnsTrueOnSuccess
|
||||||
BarTest.ReturnsTrueOnSuccess ... some error messages ...</font><br/>
|
<font color="red">[ FAILED ]</font> AnotherTest.DoesXyz
|
||||||
<font color="red">[ FAILED ]</font><font color="black">
|
|
||||||
BarTest.ReturnsTrueOnSuccess ...</font><br/>
|
2 FAILED TESTS
|
||||||
<font color="green">[==========]</font><font color="black">
|
</pre>
|
||||||
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/>
|
|
||||||
2 FAILED TESTS
|
|
||||||
</font>
|
|
||||||
</code>
|
|
||||||
|
|
||||||
You can set the `GTEST_COLOR` environment variable or the `--gtest_color`
|
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,
|
command line flag to `yes`, `no`, or `auto` (the default) to enable colors,
|
||||||
|
Loading…
Reference in New Issue
Block a user