我有一些测试:
class Somefixture: ::testing::Test{};
class Somefixture2: ::testing::Test{};
TEST_F(SomeFixture, SomeName)
{
// ...
}
如何自动将测试链接到两个夹具(装饰)?
TEST_F2(SomeFixture, SomeFixture2, SomeName){}
虽然所需的结果就像我写的一样:
TEST_F(SomeFixture, SomeName)
{
// ...
}
TEST_F(SomeFixture2, SomeName)
{
// ...
}
没有不必要的代码重复