chronos-tachyon / googletest-bazel

Fork of googletest that uses bazel.build
https://github.com/google/googletest
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Easier value-parameterized test API #460

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current API requires constructing a class for my value parameterized test 
and then instantiating it with another macro. I would like to see a shortcut. 
For example:

TEST_PI(MyTestCase, MyTest, int, Values(1, 2, 3, 4))
{
    int param = GetParam();
    // ...
}

Original issue reported on code.google.com by alex.s...@gmail.com on 22 May 2014 at 7:10