0
0
mirror of https://github.com/google/googletest.git synced 2025-03-19 18:33:48 +00:00

142 Commits

Author SHA1 Message Date
Abseil Team
6123df929d Googletest export
Internal Change

PiperOrigin-RevId: 267457395
2019-09-06 08:00:11 -04:00
Abseil Team
eb56ee5a28 Googletest export
Fix invalid g3doc syntax highlighting languages.

PiperOrigin-RevId: 265905539
2019-08-28 13:11:18 -04:00
Abseil Team
de38f63807 Googletest export
Internal change, documentation only.

PiperOrigin-RevId: 262554386
2019-08-15 17:33:20 -04:00
Gennadiy Civil
90a443f9c2 Merge pull request #2378 from kuzkry:markdown-table
PiperOrigin-RevId: 262135359
2019-08-07 11:57:30 -04:00
Krystian Kuzniarek
6aa98d5cdc fix an improperly generated table 2019-08-07 00:38:37 +02:00
Gennadiy Civil
6c7a8bec8d Merge pull request #2341 from ChrisBaish:master
PiperOrigin-RevId: 261344735
2019-08-02 13:27:07 -04:00
Gennadiy Civil
47092933fd Merge pull request #2361 from guillemglez:master
PiperOrigin-RevId: 261340959
2019-08-02 13:06:47 -04:00
Abseil Team
8756ef9058 Googletest export
Add links to "sampleK_unittest.cc" examples. Fix some broken docs crosslinks.

PiperOrigin-RevId: 261169561
2019-08-01 16:06:11 -04:00
Guillem González Vela
210239e800 Fix table formatting in advanced.md 2019-08-01 20:39:07 +02:00
Gennadiy Civil
4cd6e4d359 Merge pull request #2355 from kuzkry:markdown-numbering
PiperOrigin-RevId: 260782065
2019-07-30 18:47:37 -04:00
Krystian Kuzniarek
d384b8831f fix numbering of ordered lists in Markdown 2019-07-30 11:16:21 +02:00
Gennadiy Civil
c205468b65 Merge pull request #2338 from kuzkry:environment-documentation
PiperOrigin-RevId: 260559531
2019-07-29 16:43:23 -04:00
Rytis Karpuška
e93b5e06ba Fix small errors in primer.md 2019-07-23 18:51:35 +03:00
Chris Baish
3525e39842 Moved explanation to single line as well 2019-07-19 07:33:26 +01:00
Chris Baish
af11cda565 Moved table to single lines 2019-07-19 07:31:15 +01:00
Chris Baish
d64e4cf14e Merge remote-tracking branch 'upstream/master' into primer_md_table_update 2019-07-19 07:12:46 +01:00
Gennadiy Civil
b77e5c7625 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 15:27:51 -04:00
Gennadiy Civil
a743249a55 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 13:32:59 -04:00
Gennadiy Civil
15756aa0c8 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 11:39:49 -04:00
Gennadiy Civil
34ddfff946 Manual docs tweaks still in preparation for including docs with code pushes 2019-07-18 11:34:17 -04:00
Krystian Kuzniarek
2fa7be9326 explicitly show overriding to align examples to their comments 2019-07-18 17:07:53 +02:00
Krystian Kuzniarek
cc49f5b27a document a missing parent class 2019-07-18 17:06:22 +02:00
Chris Baish
adb490773e
Update primer.md
Correct formatting in table
2019-07-18 10:12:27 +01:00
Gennadiy Civil
f899e81e43 Preparation for including docs in round-trip with OSS. Manual review and merge docs internal-OSS 2019-07-16 14:42:35 -04:00
Gennadiy Civil
4ab6f4d709 Preparation for including docs in round-trip with OSS. Manual review and merge docs internal-OSS 2019-07-16 14:38:15 -04:00
Krystian Kuzniarek
275bbc7884 rename and apply snake_case on CheatSheet.md 2019-07-13 07:47:14 +02:00
Gennadiy Civil
437e1008c9 Documentation sync in preparation to including docs with full source sync 2019-06-24 13:52:17 -04:00
Gennadiy Civil
834dff3b52 Documentation sync in preparation to including docs with full source sync 2019-06-24 11:16:58 -04:00
Prashant Jaikumar
ce58a5972b Remove google internal links from documentation on github 2019-06-19 15:18:55 -07:00
Gennadiy Civil
b4676595c0 Incremental doc changes in preparation for doc sync 2019-06-19 17:04:47 -04:00
Gennadiy Civil
5ed950c9e3 Renaming doc files to make the file names more palatable and in preparation for including documentation in sync process 2019-06-19 16:48:38 -04:00
Gennadiy Civil
ac31db8fac small docs restucture and cleanup 2019-06-19 16:23:44 -04:00
Gennadiy Civil
ba68290cb3 small docs restucture and cleanup 2019-06-19 16:20:19 -04:00
Gennadiy Civil
176eccfb8f
Merge pull request #2287 from PhilLab/patch-1
docs/primer: Fixed usage of test case
2019-06-17 11:44:48 -04:00
Gennadiy Civil
fd20d1ecce
Merge pull request #2286 from gennadiycivil/master
Removing make and automake.
2019-06-17 11:05:13 -04:00
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
2019-06-16 15:00:02 +02:00
Gennadiy Civil
e110929a7b Documentation sync working on the documentation being included with the code 2019-06-14 11:36:35 -04:00
Gennadiy Civil
38d967e889 doc is still valid 2019-06-13 16:48:25 -04:00
Gennadiy Civil
6b8c138154 Removing make and automake. The only supported build systems are Bazel internally and CMake community supported 2019-06-13 13:49:42 -04:00
Gennadiy Civil
fbcb2eb200 removing obsolete language from docs, CMake and Bazel is the only supporeted build methods 2019-06-10 10:51:41 -04:00
Gennadiy Civil
f71fb4f9a9
Update advanced.md
Adding back section that was lost in merge
2019-05-17 15:10:47 -04:00
Enji Cooper
67c75ff8ba Handle GTEST_SKIP() when calling Environment::SetUp()
gtest prior to this change would completely ignore `GTEST_SKIP()` if
called in `Environment::SetUp()`, instead of bailing out early, unlike
`Test::SetUp()`, which would cause the tests themselves to be skipped.
The only way (prior to this change) to skip the tests would be to
trigger a fatal error via `GTEST_FAIL()`.

Desirable behavior, in this case, when dealing with
`Environment::SetUp()` is to check for prerequisites on a system
(example, kernel supports a particular featureset, e.g., capsicum), and
skip the tests. The alternatives prior to this change would be
undesirable:

- Failing sends the wrong message to the test user, as the result of the
  tests is indeterminate, not failed.
- Having to add per-test class abstractions that override `SetUp()` to
  test for the capsicum feature set, then skip all of the tests in their
  respective SetUp fixtures, would be a lot of human and computational
  work; checking for the feature would need to be done for all of the
  tests, instead of once for all of the tests.

For those reasons, making `Environment::SetUp()` handle `GTEST_SKIP()`,
by not executing the testcases, is the most desirable solution.

In order to properly diagnose what happened when running the tests if
they are skipped, print out the diagnostics in an ad hoc manner.

Update the documentation to note this change and integrate a new test,
gtest_skip_in_environment_setup_test, into the test suite.

This change addresses #2189.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-03-30 11:38:03 -07:00
Gennadiy Civil
d31151a493
Update googletest/docs/advanced.md
Co-Authored-By: antismap <michael.thenault@gmail.com>
2019-03-21 16:20:07 +01:00
antismap
f233360933
Note about INSTANTIATE_TEST_SUITE_P / INSTANTIATE_TEST_CASE_P keyword change
See https://github.com/google/googletest/issues/2065
2019-03-21 14:38:50 +01:00
Ryan Sinnet
d70cd4e358
Fix grammatical error in primer.md 2019-02-25 08:03:28 -08:00
Keiichi Watanabe
b3679d8565 Fix an invalid example of JSON report in advanced.md
This is just a mistake in the document. Google Test doesn't output
such an invalid JSON report.

Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
2019-02-05 21:05:16 +09:00
Gennadiy Civil
acde02c635
Repeat #2090
Testing
2019-01-30 14:44:27 -05:00
Gennadiy Civil
5d3a2cd9c8 Update docs, TestCase->TestSuite 2019-01-03 17:18:03 -05:00
Gennadiy Civil
7b6b3be342
Update advanced.md
Fixes #1802
2018-10-23 17:27:38 -04:00
Gennadiy Civil
40f82ce56a
Update primer.md
fixes #1709
2018-10-05 16:23:08 -04:00