Commit Graph
103 Commits
Author SHA1 Message Date
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 Civilandantismap 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
Arkady Shapkin e6c407d605 Fix doc links 2018-09-04 23:07:18 +03:00
Gennadiy Civil 3787a483b9 Merge pull request #1803 from KindDragon/patch-2
Update documentation to syntax highlight code
2018-09-04 10:56:49 -04:00
Andrew Siplas 70a7017582 Fix #1805: add .md to hyperlink 2018-09-03 22:13:52 -04:00
Arkady Shapkin de9675986f Update documentation to syntax highlight code 2018-09-03 21:56:23 +03:00
Steven Santos Erenst ca912f8b70 Fix broken FAQ link in primer.md
The current link pointed to a non existing section in the FAQ.
2018-08-28 21:03:19 -07:00
Vadim Kotov ddc618ab31 docs: fix more broken links to sections in Advanced guide 2018-08-20 16:20:14 +03:00
Vadim Kotov 02c4f1af9d docs: fixed broken references to sections in Advanced guide 2018-08-20 15:31:55 +03:00
Vadim Berezniker 0796415314 std references shouldn't be fully qualified 2018-08-17 10:49:10 -07:00
Yi Zheng ecc241900a - Fix the broken markdown table
- Fix some format issue
2018-08-13 17:57:51 +08:00
Wiktor Garbacz db43df6df7 docs: fix broken links 2018-08-09 13:14:36 +02:00
Piotr Kąkol 309e8a271e Updated broken and outdated URLs 2018-07-25 19:19:26 +02:00
Stian Valle bb9fc6f66e Update primer.md 2018-07-21 15:50:45 +02:00
Stian Valle 7abf99d941 Update primer.md 2018-07-21 15:40:57 +02:00
Stian Valle baf2115a59 Update primer.md 2018-07-21 15:29:58 +02:00
Gennadiy Civil 20ef7944a4 Merge pull request #1667 from hckr/patch-1
Fix broken links to FAQ in primer.md
2018-07-18 10:21:46 -04:00
Gennadiy Civil 5437926b22 Docs sync 2018-07-17 17:47:25 -04:00
Jakub Młokosiewicz 021c308069 Fix broken links to FAQ in primer.md 2018-07-17 00:49:31 +02:00
Gennadiy Civil 36066cfecf more formatting [skip ci] 2018-07-11 09:42:48 -04:00
Gennadiy Civil 74cccf494a formatting, [ci skip] 2018-07-11 09:38:47 -04:00
Gennadiy Civil 4f9194286c Fix heading
[skip ci]
2018-07-10 17:30:28 -04:00
Gennadiy Civil 50daf299c2 Docs sync
[ci skip]
2018-07-10 17:16:03 -04:00
Gennadiy Civil 3847aecb5f Docs sync/internal 2018-06-13 14:29:26 -04:00
Gennadiy Civil 6a484baf06 Doc sync/internal 2018-06-13 14:26:24 -04:00
Gennadiy Civil 0b958a03e9 Removed "Documentation.md" not adding value and not consitent with internal docs 2018-06-11 12:07:45 -04:00
Gennadiy Civil 109f848bc8 Rename Samples.md to samples.md and adjust the links 2018-06-11 11:54:27 -04:00
Gennadiy Civil 4490be8789 Rename FAQ.md to faq.md and adjust the links.
Part of documentation rationalization
2018-06-11 11:49:02 -04:00
Gennadiy Civil 8f87d00398 Rename AdvancedGuide.md to advanced.md and adjust the links.
Part of documentation rationalization work
2018-06-11 11:40:35 -04:00
Gennadiy Civil de47b0d30c Rename "Primer.md" to "primer.md" and adjust links. Part of the documentaion rationalzation 2018-06-11 11:26:16 -04:00
Petr Hosek 6baf17e9d1 Support JSON output format in addition to XML
This change allows emitting output in JSON format in addition to the
already supported XML format. The implementation as well as the file
structure is intentionally modelled after the XML one.
2018-02-28 00:48:41 -08:00
Aleksey Kozin 06568301ec TEST() arguments are invalid in an example
Both names must be valid C++ identifiers, and they should not contain underscore (`_`)
2018-02-23 01:34:26 +03:00
Gennadiy Civil b324a36c35 Merge branch 'master' into assert 2018-02-09 11:42:05 -05:00
Troy Holsapple c8510504dd Fixed typos 2018-02-07 22:06:00 -08:00
Alexey Sokolov 092d088533 Add ability to throw from ASSERT
while not losing benefits of EXPECT, and not killing the whole test,
as with --gtest_throw_on_failure.

183822976
2018-02-08 01:15:42 +00:00
LI Daobing efd49c2d45 Update Documentation.md 2018-01-26 15:36:57 +08:00
Gennadiy Civil e29805aa5d upstream cl 182543808 2018-01-24 13:04:36 -05:00
Fedor Trushkin 8e862211a2 Use fully qualified in examples 2018-01-18 10:38:25 +01:00
Fedor Trushkin 354fc8d8b1 Document ScopedTrace utility 2018-01-18 10:34:05 +01:00
Carlos O'Ryan 23a014ab57 Refactor docs about contributions to CONTRIBUTING.md.
Per the review comments.
2017-12-11 19:33:27 -05:00
Herbert Thielen 8866af0386 remove markdown stars (bold) from code examples 2017-10-29 17:12:00 +01:00