This *is* the way it's supposed to work. I don't think we need to
"add" it to gtest, as it's meant to be a user extension.
See http://code.google.com/p/googletest/wiki/AdvancedGuide#Value_Parameterized_Tests
-- you can use the ValuesIn(container) expression to define the
parameters, where container can be an STL container (e.g. vector)
expression. For example, ValuesIn(GetFilesInDir("foo/bar")) (assuming
GetFilesInDir() returns a vector of file paths).
>
> - Pat
>
> On Nov 15, 11:38 am, Michael Bailey <jinxid...@gmail.com> wrote:
>> I am in the process of converting our current custom testing framework
>> into the gtest framework. Is there a way to have dynamic
>> parameterization for parameterized tests? We have a collection of
>> files in one directory which each need to be analyzed. I would love
>> to have a function which examines the directory and creates a test for
>> each file, but I don't know if that is possible. I recognize that I
>> can explicitly reference each file, and I may have to do that. But I
>> would much prefer a situation where the files are picked up
>> automatically. Any thoughts?
>
--
Zhanyong