alexzzp / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

INSTANTIATE_TEST_CASE_P called before SetUpTestCase -- can't initialize array for ValuesIn #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to use ValuesIn in a parameterized case, but I want the container to be 
initialized from SetUpTestCase.  But I can't do this, because 
INSTANTIATE_TEST_CASE_P is called BEFORE SetUpTestCase.

Original issue reported on code.google.com by da...@optionmetrics.com on 14 Jun 2010 at 7:56

GoogleCodeExporter commented 9 years ago
The gtest model is that the list of tests must be determined before 
RUN_ALL_TESTS(), so this is not a supported use case.  My recommendation is to 
either move the set-up logic out of SetUpTestCase() and into main(), or avoid 
using parameterized tests.

Original comment by w...@google.com on 14 Jun 2010 at 8:04

GoogleCodeExporter commented 9 years ago
BTW, please use the mailing list for feature requests s.t. more people can 
participate in the discussion.  We use the issue tracker for reporting bugs 
only.  Thanks.

Original comment by w...@google.com on 14 Jun 2010 at 8:05