Skip to content
Snippets Groups Projects
Commit 68ca04c2 authored by Abseil Team's avatar Abseil Team Committed by Mark Barolak
Browse files

Googletest export

Updated documentation for Value-Parameterized Tests: Per-default, a TEST_P without a corresponding INSTANTIATE_TEST_SUITE_P now causes a failing test.

PiperOrigin-RevId: 323622468
parent 18a9aeda
No related branches found
No related tags found
No related merge requests found
...@@ -1375,15 +1375,11 @@ INSTANTIATE_TEST_SUITE_P(InstantiationName, ...@@ -1375,15 +1375,11 @@ INSTANTIATE_TEST_SUITE_P(InstantiationName,
NOTE: The code above must be placed at global or namespace scope, not at NOTE: The code above must be placed at global or namespace scope, not at
function scope. function scope.
NOTE: Don't forget this step! If you do your test will silently pass, but none Per default, every `TEST_P` without a corresponding `INSTANTIATE_TEST_SUITE_P`
of its suites will ever run! causes a failing test in test suite `GoogleTestVerification`. If you have a test
suite where that omission is not an error, for example it is in a library that
There is work in progress to make omitting `INSTANTIATE_TEST_SUITE_P` show up may be linked in for other reason or where the list of test cases is dynamic and
under the `GoogleTestVerification` test suite and to then make that an error. may be empty, then this check can be suppressed by tagging the test suite:
If you have a test suite where that omission is not an error, for example it is
in a library that may be linked in for other reason or where the list of test
cases is dynamic and may be empty, then this check can be suppressed by tagging
the test suite:
```c++ ```c++
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FooTest); GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FooTest);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment