commit
2211061e64
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
|||||||
# Googletest Primer
|
# Googletest Primer
|
||||||
|
|
||||||
|
|
||||||
## Introduction: Why googletest?
|
## Introduction: Why googletest?
|
||||||
|
|
||||||
*googletest* helps you write better C++ tests.
|
*googletest* helps you write better C++ tests.
|
||||||
@ -436,6 +437,7 @@ When these tests run, the following happens:
|
|||||||
|
|
||||||
**Availability**: Linux, Windows, Mac.
|
**Availability**: Linux, Windows, Mac.
|
||||||
|
|
||||||
|
|
||||||
## Invoking the Tests
|
## Invoking the Tests
|
||||||
|
|
||||||
`TEST()` and `TEST_F()` implicitly register their tests with googletest. So,
|
`TEST()` and `TEST_F()` implicitly register their tests with googletest. So,
|
||||||
@ -544,6 +546,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
The `::testing::InitGoogleTest()` function parses the command line for
|
The `::testing::InitGoogleTest()` function parses the command line for
|
||||||
googletest flags, and removes all recognized flags. This allows the user to
|
googletest flags, and removes all recognized flags. This allows the user to
|
||||||
control a test program's behavior via various flags, which we'll cover in
|
control a test program's behavior via various flags, which we'll cover in
|
||||||
@ -560,6 +563,7 @@ gtest\_main library and you are good to go.
|
|||||||
|
|
||||||
NOTE: `ParseGUnitFlags()` is deprecated in favor of `InitGoogleTest()`.
|
NOTE: `ParseGUnitFlags()` is deprecated in favor of `InitGoogleTest()`.
|
||||||
|
|
||||||
|
|
||||||
## Known Limitations
|
## Known Limitations
|
||||||
|
|
||||||
* Google Test is designed to be thread-safe. The implementation is thread-safe
|
* Google Test is designed to be thread-safe. The implementation is thread-safe
|
||||||
|
Loading…
Reference in New Issue
Block a user