diff options
author | Abseil Team <absl-team@google.com> | 2021-02-17 21:57:09 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2021-02-18 18:27:15 (GMT) |
commit | daa0df7b410cfed62ef474446eff22148a272a8d (patch) | |
tree | 296a326bdc165b3124371c79331768010eb2fed1 /docs/gmock_for_dummies.md | |
parent | 7fb047bca335375a47ee0c4cddf4ffd92ac02673 (diff) | |
download | googletest-daa0df7b410cfed62ef474446eff22148a272a8d.zip googletest-daa0df7b410cfed62ef474446eff22148a272a8d.tar.gz googletest-daa0df7b410cfed62ef474446eff22148a272a8d.tar.bz2 |
Googletest export
Explicitly skip tests after fatal global environment setup errors
Previously the tests were all skipped, but the resulting output claimed all
tests passed.
Before:
```
[----------] Global test environment set-up.
<failure message>
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (83 ms total)
[ PASSED ] 1 test.
[ FAILED ] 0 tests, listed below:
```
After:
```
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
<failure message>
[----------] 1 test from SomeTest
[ RUN ] SomeTest.DoesFoo
<...>: Skipped
[ SKIPPED ] SomeTest.DoesFoo (0 ms)
[----------] 1 test from SomeTest (0 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (68 ms total)
[ PASSED ] 0 tests.
[ SKIPPED ] 1 test, listed below:
[ SKIPPED ] SomeTest.DoesFoo
[ FAILED ] 0 tests, listed below:
```
PiperOrigin-RevId: 358026389
Diffstat (limited to 'docs/gmock_for_dummies.md')
0 files changed, 0 insertions, 0 deletions