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
5437926b
Commit
5437926b
authored
Jul 17, 2018
by
Gennadiy Civil
Browse files
Docs sync
parent
36066cfe
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1716 additions
and
1915 deletions
+1716
-1915
googletest/docs/advanced.md
googletest/docs/advanced.md
+1333
-1213
googletest/docs/faq.md
googletest/docs/faq.md
+379
-702
googletest/docs/primer.md
googletest/docs/primer.md
+4
-0
No files found.
googletest/docs/advanced.md
View file @
5437926b
This diff is collapsed.
Click to expand it.
googletest/docs/faq.md
View file @
5437926b
This diff is collapsed.
Click to expand it.
googletest/docs/primer.md
View file @
5437926b
# Googletest Primer
## Introduction: Why googletest?
*googletest*
helps you write better C++ tests.
...
...
@@ -436,6 +437,7 @@ When these tests run, the following happens:
**Availability**
: Linux, Windows, Mac.
## Invoking the Tests
`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
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
...
...
@@ -560,6 +563,7 @@ gtest\_main library and you are good to go.
NOTE:
`ParseGUnitFlags()`
is deprecated in favor of
`InitGoogleTest()`
.
## Known Limitations
*
Google Test is designed to be thread-safe. The implementation is thread-safe
...
...
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