Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
6123df92
Commit
6123df92
authored
Sep 05, 2019
by
Abseil Team
Committed by
Gennadiy Rozental
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Internal Change PiperOrigin-RevId: 267457395
parent
ab8f346b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
faq.md
googletest/docs/faq.md
+1
-1
primer.md
googletest/docs/primer.md
+1
-1
No files found.
googletest/docs/faq.md
View file @
6123df92
...
@@ -298,7 +298,7 @@ In the end, this boils down to good concurrent programming. You have to make
...
@@ -298,7 +298,7 @@ In the end, this boils down to good concurrent programming. You have to make
sure that there is no race conditions or dead locks in your program. No silver
sure that there is no race conditions or dead locks in your program. No silver
bullet - sorry!
bullet - sorry!
## Should I use the constructor/destructor of the test fixture or SetUp()/TearDown()?
## Should I use the constructor/destructor of the test fixture or SetUp()/TearDown()?
{#CtorVsSetUp}
The first thing to remember is that googletest does
**not**
reuse the same test
The first thing to remember is that googletest does
**not**
reuse the same test
fixture object across multiple tests. For each
`TEST_F`
, googletest will create
fixture object across multiple tests. For each
`TEST_F`
, googletest will create
...
...
googletest/docs/primer.md
View file @
6123df92
...
@@ -302,7 +302,7 @@ for
...
@@ -302,7 +302,7 @@ for
**Availability**
: Linux, Windows, Mac.
**Availability**
: Linux, Windows, Mac.
## Test Fixtures: Using the Same Data Configuration for Multiple Tests
## Test Fixtures: Using the Same Data Configuration for Multiple Tests
{#same-data-multiple-tests}
If you find yourself writing two or more tests that operate on similar data, you
If you find yourself writing two or more tests that operate on similar data, you
can use a
*test fixture*
. It allows you to reuse the same configuration of
can use a
*test fixture*
. It allows you to reuse the same configuration of
...
...
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