summaryrefslogtreecommitdiffstats
path: root/googletest/test/googletest-output-test_.cc
Commit message (Collapse)AuthorAgeFilesLines
* Skip entire test suite with `GTEST_SKIP()` in `SetUpTestSuite`Dino Radakovic2023-06-141-0/+6
| | | | | | | Fixes #4273 PiperOrigin-RevId: 540254167 Change-Id: I2555740d10284223539035bf73f88554fcf73f8a
* Add missing std includesTom Hughes2023-04-201-0/+3
| | | | | PiperOrigin-RevId: 525794940 Change-Id: Ib2639058610c91cbffbb0f22a5e71573e0cbd651
* Apply clang-tidy fixesAbseil Team2023-03-081-1/+1
| | | | | PiperOrigin-RevId: 514936218 Change-Id: I24c443a2ca75c875052b0cf2d0a48e808d03ae43
* Use "#ifdef" with public macrosTom Hughes2023-03-061-5/+5
| | | | | | | This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513944726 Change-Id: I1a3854bb2333d5dec6c0ff91ee1eddd9a766ab91
* Use "#ifdef GTEST_OS_..." instead of "#if GTEST_OS_..."Tom Hughes2023-03-061-1/+1
| | | | | | | This is compatible with compiling with "-Wundef" (#3267). PiperOrigin-RevId: 513943378 Change-Id: I47cf5fabbb77be061c4483a0adc54511af6b191c
* Remove unneccessary "#if _MSC_VER"Tom Hughes2023-02-021-4/+0
| | | | | | | | | The GTEST_DISABLE_MSC_WARNINGS macros already have an _MSC_VER check. This change also adds a missing GTEST_DISABLE_MSC_WARNINGS_POP_ in gtest-typed-test_test.cc. PiperOrigin-RevId: 506636248 Change-Id: Ifdc044528f5448fbf0175887d1671f1e1f3040b9
* Merge branch 'main' into promote-inclusive-behaviorrefs/pull/3779/headBrad Messer2022-03-181-157/+94
|\
| * Running clang-format over all of GoogleTestAbseil Team2022-03-151-157/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few tests are examining code locations and looking af the resulting line numbers to verify that GoogleTest shows those to users correctly. Some of those locations change when clang-format is run. For those locations, I've wrapped portions in: // clang-format off ... // clang-format on There may be other locations that are currently not tickled by running clang-format. PiperOrigin-RevId: 434844712 Change-Id: I3a9f0a6f39eff741c576b6de389bef9b1d11139d
* | Remove sanity as it is offensive to neurodiverse individuals.Brad Messer2022-03-181-1/+1
|/
* Googletest exportAbseil Team2021-09-231-0/+8
| | | | | | | | | | Do not attempt to continue running a test suite if it already failed during `SetUpTestSuite`. The suite already failed and running the tests might just add noise to the run, or even crash the process unnecessarily. Fixes #2187 PiperOrigin-RevId: 397770405
* Googletest exportAbseil Team2021-07-071-2/+2
| | | | | | Introduce GTEST_FLAG_GET and GTEST_FLAG_SET macros. PiperOrigin-RevId: 382808313
* chore: fix spellingrefs/pull/3364/headJohn Bampton2021-04-151-1/+1
|
* Googletest exportAbseil Team2021-02-051-18/+0
| | | | | | Remove uses of GTEST_HAS_TYPED_TEST_P and GTEST_HAS_TYPED_TEST. PiperOrigin-RevId: 353935996
* remove dead code in googletest-output-testrefs/pull/2764/headKrystian Kuzniarek2020-03-241-57/+0
|
* Googletest exportAbseil Team2020-01-211-0/+4
| | | | | | Add extra filtering so that the reported message differentiates between the case where INSTANTIATE_TEST_SUITE_P is missing vs. the case where TEST_P is missing. PiperOrigin-RevId: 290114508
* Googletest exportAbseil Team2020-01-021-0/+15
| | | | | | | | Add option (default to disabled) to make C++ type parameterized tests (TYPED_TEST_P) fail when they're not instantiated. When an un-instantiated TYPED_TEST_P is found, a new test will be inserted that emits a suitable message. For now, that is just a notice, but the hope it to flip the bit to make it fail by default. PiperOrigin-RevId: 286408038
* Revert "Googletest export": disallow empty prefixrefs/pull/2624/headShahbaz Youssefi2019-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 20b5b8ecc7a81d23b4716e22a2b35fd53379c8c6. Reason for revert: Breaks existing applications, such as ANGLE (angleproject.org), requires adding an extra prefix that needs to be typed for no reason (when testing from command line) and increases the logs' sizes by a non-trivial amount due to the very large number of tests ANGLE runs. Original commit message: Add a compile time check to ensure that the parameters to TEST_P and INSTANTIATE_TEST_SUITE_P are not empty. Some compilers already fail in that case and, even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers: https://en.cppreference.com/w/cpp/language/identifiers First, every project is perfectly capable of adding a prefix if they want to support such a compiler. This change penalizes every project. Second, using a prefix such as `_p` also results in reserved identifiers, so this change is not really solving the problem. For that matter, instead of generating `gtest_##prefix##...`, you can generate `gtest_x##prefix##...` to correctly fix the issue, including when empty prefixes are used.
* Revert "Googletest export": Remove test for empty prefixShahbaz Youssefi2019-12-161-0/+8
| | | | | | | | | | This reverts commit 4c25e2b87fcb78abcfdee2739db9ed7a19754cd3. Reason for revert: Reverting the commit that disallows empty prefixes. Original commit message: Remove a test case rendered obsolete by disallowing empty argument for INSTANTIATE_TEST_SUITE_P. Remove the code that it was testing.
* Googletest exportAbseil Team2019-12-131-0/+7
| | | | | | | | | | | Detect when C++ parametric tests (TEST_P) are not instantiated. When an un-instantiated TEST_P is found, a new test will be inserted that will emit a warning message. This can be made to error with minor code edits. In the future, that is intended to be the default. PiperOrigin-RevId: 284901666
* Googletest exportAbseil Team2019-10-161-8/+0
| | | | | | | Remove a test case rendered obsolete by disallowing empty argument for INSTANTIATE_TEST_SUITE_P. Remove the code that it was testing. PiperOrigin-RevId: 275040108
* Googletest exportAbseil Team2019-10-101-1/+1
| | | | | | | Add a compile time check to ensure that the parameters to TEST_P and INSTANTIATE_TEST_SUITE_P are not empty. Some compilers already fail in that case and, even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers: https://en.cppreference.com/w/cpp/language/identifiers PiperOrigin-RevId: 273832263
* remove custom implementations of std::is_samerefs/pull/2399/headKrystian Kuzniarek2019-08-141-4/+4
|
* Merge pull request #2111 from knuto:pr/remove_slashGennadiy Civil2019-08-061-0/+8
|\ | | | | | | PiperOrigin-RevId: 261906004
| * Remove / from parameterized test names if base test name is emptyrefs/pull/2111/headKnut Omang2019-04-261-0/+12
|/ | | | | | | This is useful to let a subsystem generate test names based on parameterized tests without exposing them as such to the user. Signed-off-by: Knut Omang <knut.omang@oracle.com>
* Googletest exportAbseil Team2019-04-241-1/+5
| | | | | | | | Add GTEST_FAIL_AT, an equivalent to ADD_FAILURE_AT but that spawns a fatal failure rather than a non-fatal, eg. the equivalent of an ASSERT* failure rather than an EXPECT* failure. PiperOrigin-RevId: 244746609
* Googletest exportmisterg2019-01-111-32/+32
| | | | | | Change tests to use new Test Suite API PiperOrigin-RevId: 228908894
* Googletest exportAbseil Team2018-12-201-0/+50
| | | | | | Add public entry point testing::RegisterTest. PiperOrigin-RevId: 226350937
* Googletest exportAbseil Team2018-12-031-32/+20
| | | | | | Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
* Googletest exportmisterg2018-10-311-2/+1
| | | | | | Remove scoped_ptr replace with std::unique_ptr PiperOrigin-RevId: 219291284
* Apply clang-tidy modernize-use-nullptr to googletest.Abseil Team2018-10-051-6/+5
| | | | | | | | | | | Now that googletest has moved to C++11, it should no longer use NULL or 0 for the null pointer. This patch converts all such usages to nullptr using clang-tidy. This prevents LLVM from issuing -Wzero-as-null-pointer-constant warnings. PiperOrigin-RevId: 215814400
* Googletest exportmisterg2018-08-311-1/+7
| | | | | | Silence MSVC warnings PiperOrigin-RevId: 210726964
* Googletest exportAbseil Team2018-08-311-4/+4
| | | | | | | | Fix the typed test names in the tests for customized typed test parameters. As required by googletest documentation, the names should not contain an underscore. PiperOrigin-RevId: 210678652
* Googletest exportmisterg2018-08-311-7/+1
| | | | | | Internal Change PiperOrigin-RevId: 210594341
* typoGennadiy Civil2018-08-291-1/+1
|
* typoGennadiy Civil2018-08-291-1/+1
|
* MSVC warnings silenceGennadiy Civil2018-08-291-1/+7
|
* Googletest exportAbseil Team2018-08-281-0/+38
| | | | | | | | Add the possibility of specifying the name in type parameterized tests. Similar to how the last parameter of INSTANTIATE_TEST_CASE_P allows to override the name for (non-type) parametrized tests, this adds the possibility of adding a parameter to INSTANTIATE_TYPED_TEST_CASE_P. The argument has to be a class, which contains a static templated function GetName<T>(int), returning the name for type T. PiperOrigin-RevId: 210532231
* Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+0
|
* cmake test fixesGennadiy Civil2018-08-021-1/+1
|
* googletest-output-test changesGennadiy Civil2018-08-011-0/+1067