googletest - Can I give better names to value-parameterized tests in gtest? -
i use value-parameterized tests in gtest. example, if write
instantiate_test_case_p(instantiationname, footest, ::testing::values("meeny", "miny", "moe"));
then in output see test names such as
instantiationname/footest.doesblah/0 "meeny" instantiationname/footest.doesblah/1 "miny" instantiationname/footest.doesblah/2 "moe"
is there way make these names more meaningful? i'd see
instantiationname/footest.doesblah/meeny instantiationname/footest.doesblah/miny instantiationname/footest.doesblah/moe
instantiate_test_case_p accepts optional 4th argument can used purpose. see https://github.com/google/googletest/blob/master/googletest/include/gtest/gtest-param-test.h#l1409.
Comments
Post a Comment