Krzysztof Kosiński
5197b1a8e6
Modify example in the primer to match Testing FAQ.
...
The CtorVsSetUp section of the FAQ says that constructors and destructors should be preferred over SetUp() and TearDown(), because they will automatically chain up to the fixture's base class, whereas for methods the user must remember to add the chaining manually.
PiperOrigin-RevId: 624273474
Change-Id: Ida41aae193d417eaf996587c7ae1a0099a8cab32
7 months ago
Derek Mauro
cde9a745a6
Fix broken links in primer.md
...
Closes #4432
PiperOrigin-RevId: 592335698
Change-Id: I9859451981f58f1426255067d702a0767718b1d5
11 months ago
Abseil Team
9bb354fa83
s/::testing::/testing::/ in test documentation outside of using statements to align with best practice
...
PiperOrigin-RevId: 574377544
Change-Id: I0ca69a3bf14cc1aab75784eba220a48bf50cef04
1 year ago
sthd
f0eae4b399
changed http to https
1 year ago
Abseil Team
c875c4e224
Adjust includes to use <> instead of "", consistent with quickstart pages.
...
Right now, gtest documentation uses different #include syntax. The quickstart
pages (e.g., http://google.github.io/googletest/quickstart-bazel.html#create-and-run-a-binary ) are checked in with `#include <gtest/gtest.h>` However, other
documentation (such as the primer) uses `#include "gtest/gtest.h"` (e.g.,
https://google.github.io/googletest/primer.html#writing-the-main-function ).
PiperOrigin-RevId: 551878641
Change-Id: Iab93cc1da3ef4870a07b624071b75d6e9d3568c1
1 year ago
Abseil Team
65cfeca1a1
internal g3doc documentation change.
...
PiperOrigin-RevId: 539134110
Change-Id: I28041f77e18bc67aa0ffabdc7205e350deed22c8
1 year ago
Abseil Team
0cd05c6ea9
Update naming to "GoogleTest" in the GoogleTest Primer.
...
PiperOrigin-RevId: 520409541
Change-Id: I75a0b8615ece923137d4f5dcdb915f38e4c3b1b2
2 years ago
Abseil Team
555486f408
Rephrase the description of TEST_F() arguments for clarity.
...
PiperOrigin-RevId: 512937964
Change-Id: Ifa6369a80dc7d8efe60511417496d58317cfc28d
2 years ago
Abseil Team
95d8c7ac43
Reformat to current g3doc style guide. No content changes.
...
PiperOrigin-RevId: 512681427
Change-Id: I88b22d82430ed145b8342747adf300f3e734d43b
2 years ago
Dino Radakovic
b3bfebd796
Comment that q0_ in primer should remain empty
...
PiperOrigin-RevId: 496642643
Change-Id: I178efeda76cbf46e5f4bb91454c205b9a060a4ea
2 years ago
Ram Kumar K R
0256210376
Update example to reflect the tests below
3 years ago
Ludger Paehler
b4d4e6e348
Fix typo in the queue test.
3 years ago
Abseil Team
5b40153003
Googletest export
...
Format documentation
PiperOrigin-RevId: 388592443
3 years ago
Abseil Team
b050d6c4b0
Googletest export
...
Internal change
PiperOrigin-RevId: 378672633
3 years ago
Abseil Team
2bd3481666
Googletest export
...
Fix broken link
PiperOrigin-RevId: 375995669
4 years ago
Abseil Team
d5d6ff940b
Googletest export
...
Create Assertions Reference
PiperOrigin-RevId: 375824718
4 years ago
Abseil Team
d9c309fdab
Googletest export
...
Add files for GitHub Pages
PiperOrigin-RevId: 358289110
4 years ago
Abseil Team
e935e6c387
Googletest export
...
Internal change
PiperOrigin-RevId: 356867746
4 years ago
Abseil Team
609281088c
Googletest export
...
Docs cleanup
PiperOrigin-RevId: 356798444
4 years ago
Abseil Team
8a7618672a
Googletest export
...
Delete internal tags from docs
PiperOrigin-RevId: 353769887
4 years ago
Abseil Team
14098f2015
Googletest export
...
Merge CONTRIBUTORS, delete LICENSEs in googletest/ and googlemock/
PiperOrigin-RevId: 352558822
4 years ago
Abseil Team
489283524e
Googletest export
...
Move all docs into top-level docs/ directory
PiperOrigin-RevId: 350211277
4 years ago
Abseil Team
b1fbd33c06
Googletest export
...
Internal change: Add self-shortlink
PiperOrigin-RevId: 343960442
4 years ago
Abseil Team
3d93f88081
Googletest export
...
internal change
PiperOrigin-RevId: 325799949
4 years ago
Abseil Team
a09ea700d3
Googletest export
...
Fix `-Wgnu-zero-variadic-macro-arguments` in GMock
Passing zero arguments to the variadic part of a macro is a GNU
extension and triggers warnings when build projects using GMock with
`-pedantic`.
- Fix uses of `GMOCK_PP_INTERNAL_16TH` to always receive at least 17
arguments. (this was triggered when `GMOCK_PP_NARG` or `GMOCK_PP_HAS_COMMA`
were used with an argument containing no commas).
- Fix `GMOCK_PP_HEAD` to append a dummy unused argument so that
`GMOCK_PP_INTERNAL_HEAD` always has two arguments.
PiperOrigin-RevId: 310414611
5 years ago
aribibek
461bd03fc7
fix a link to documentation
...
fix a documentation link on "how to customize the printing of the arguments"
5 years ago
Oleksandr Yefremov
b8a92f7c86
Rename test case to test suite
5 years ago
Abseil Team
2bee6da24e
Googletest export
...
Editorial cleanup of the "write the main function" section
PiperOrigin-RevId: 277102507
5 years ago
Abseil Team
757d39a79b
Googletest export
...
Make it clearer that users should _not_ write their own main functions.
PiperOrigin-RevId: 277079721
5 years ago
Abseil Team
274afe50cf
Googletest export
...
In the text fixtures section, point to the specific FAQ entry on constructors vs. `SetUp`.
PiperOrigin-RevId: 268509969
5 years ago
Abseil Team
33a0d4f6d7
Googletest export
...
Some mechanical and grammatical fixes to the Primer.
PiperOrigin-RevId: 268200783
5 years ago
Abseil Team
6123df929d
Googletest export
...
Internal Change
PiperOrigin-RevId: 267457395
5 years ago
Krystian Kuzniarek
6aa98d5cdc
fix an improperly generated table
5 years ago
Abseil Team
8756ef9058
Googletest export
...
Add links to "sampleK_unittest.cc" examples. Fix some broken docs crosslinks.
PiperOrigin-RevId: 261169561
5 years ago
Krystian Kuzniarek
d384b8831f
fix numbering of ordered lists in Markdown
5 years ago
Rytis Karpuška
e93b5e06ba
Fix small errors in primer.md
5 years ago
Chris Baish
3525e39842
Moved explanation to single line as well
5 years ago
Chris Baish
af11cda565
Moved table to single lines
5 years ago
Gennadiy Civil
a743249a55
Manual docs tweaks still in preparation for including docs with code pushes
5 years ago
Chris Baish
adb490773e
Update primer.md
...
Correct formatting in table
5 years ago
Gennadiy Civil
437e1008c9
Documentation sync in preparation to including docs with full source sync
5 years ago
Gennadiy Civil
b4676595c0
Incremental doc changes in preparation for doc sync
5 years ago
Gennadiy Civil
5ed950c9e3
Renaming doc files to make the file names more palatable and in preparation for including documentation in sync process
5 years ago
Philipp Hasper
b72b1bee95
docs/primer: Fixed usage of test case
...
According to the nomenclature, what was called a test case
is actually a test suite
5 years ago
Gennadiy Civil
e110929a7b
Documentation sync working on the documentation being included with the code
6 years ago
Gennadiy Civil
fbcb2eb200
removing obsolete language from docs, CMake and Bazel is the only supporeted build methods
6 years ago
Rong Ou
f658dcbaa0
replace test case with test suite in the primer
6 years ago
Rong Ou
d622dfe8ab
add missing period
6 years ago
Ryan Sinnet
d70cd4e358
Fix grammatical error in primer.md
6 years ago
Diomidis Spinellis
9dc235b59c
Avoid array index out of range
...
Issue: #2140
6 years ago