This should result in printing test_name field as a test name during test run.
ParametrizedTest.BasicTest/First
ParametrizedTest.BasicTest/Second
ParametrizedTest.BasicTest/Third
Another option to override a test name.
Helper class ::utest::PrintTestName() also supports conventional PrintTo override. However field test_name of a parameters' structure has a higher priority for overriding a test name than a PrintTo function.
In case you have more than one dimension for possible test parameters, you can also use ::utest::PrintTestName() to combine names for the dimensions of every parameter. You can mix methods for overriding test names for the dimension of every parameter independently.
// Define a class for running tests which get parameterized with the structures
// defined above.
class DoublyParametrizedTest
: public testing::TestWithParam<std::tuple<TestParams, AnotherTestParams>> {