8
Googletest (GTEST) consente di disabilitare i test individuali con l'aggiunta diCome disabilitare un test parametrizzato Googletest (gtest)?
DISABLED_
prefisso al nome del test.
E i test parametrizzati: come li disabilito? L'aggiunta del prefisso al nome del test non li disabilita.
Per esempio, come faccio a disattivare il test di esempio fornito da GTEST documentation:
class FooTest : public ::testing::TestWithParam<const char*> {
// You can implement all the usual fixture class members here.
// To access the test parameter, call GetParam() from class
// TestWithParam<T>.
};
TEST_P(FooTest, HasBlahBlah) {
...
}
INSTANTIATE_TEST_CASE_P(InstantiationName,
FooTest,
::testing::Values("meeny", "miny", "moe"));