diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-03-20 12:33:48 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-03-20 12:33:48 +0000 |
commit | 90030d74c8cacbdab62136daa465a7ef359e2adc (patch) | |
tree | 4e44a38cfdf4994d0d5d65b4e8a26975f2e4c8fc /include/gtest | |
parent | 06d04c0945bf47bae90532552e6e8294802fc9aa (diff) | |
download | googletest-90030d74c8cacbdab62136daa465a7ef359e2adc.tar.gz googletest-90030d74c8cacbdab62136daa465a7ef359e2adc.tar.bz2 googletest-90030d74c8cacbdab62136daa465a7ef359e2adc.zip |
Fixes comments and tests for the moment of generator parameter evaluation in INSTANTIATE_TEST_CASE_P.
Diffstat (limited to 'include/gtest')
-rw-r--r-- | include/gtest/gtest-param-test.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/gtest/gtest-param-test.h b/include/gtest/gtest-param-test.h index c0c85e3e..81006964 100644 --- a/include/gtest/gtest-param-test.h +++ b/include/gtest/gtest-param-test.h @@ -133,9 +133,12 @@ INSTANTIATE_TEST_CASE_P(AnotherInstantiationName, FooTest, ValuesIn(pets)); // in the given test case, whether their definitions come before or // AFTER the INSTANTIATE_TEST_CASE_P statement. // -// Please also note that generator expressions are evaluated in -// RUN_ALL_TESTS(), after main() has started. This allows evaluation of -// parameter list based on command line parameters. +// Please also note that generator expressions (including parameters to the +// generators) are evaluated in InitGoogleTest(), after main() has started. +// This allows the user on one hand, to adjust generator parameters in order +// to dynamically determine a set of tests to run and on the other hand, +// give the user a chance to inspect the generated tests with Google Test +// reflection API before RUN_ALL_TESTS() is executed. // // You can see samples/sample7_unittest.cc and samples/sample8_unittest.cc // for more examples. |