0
例如,测试案例命名ExampleTest有谁知道如何在测试套件中运行的测试用例中选择部分测试方法?
ExampleTest {
testA{};
testB{};
testC();
}
我可以运行所有这些类TestSuite.addTestSuite(ExampleTest.class);
但是,如何选择testA
和testB
碰上TestSuite
?
例如,测试案例命名ExampleTest有谁知道如何在测试套件中运行的测试用例中选择部分测试方法?
ExampleTest {
testA{};
testB{};
testC();
}
我可以运行所有这些类TestSuite.addTestSuite(ExampleTest.class);
但是,如何选择testA
和testB
碰上TestSuite
?
2想法:
+1类别,但它看起来问题是针对JUnit 3 – topchef 2010-06-26 06:14:36
参见http://stackoverflow.com/questions/1368915/exclude-individual-junit-test-methods-without-modifying-the-test-class – 2010-06-24 03:32:51
你就不能标注TESTC被忽略? – 2010-06-24 06:20:48