Junit CTS无法启动自定义测试套件
我已经实现了大量的测试用例,我希望避免同时运行它们 我创建了自己的测试套件,以便只选择其中的一组:Junit CTS无法启动自定义测试套件,junit,cts,Junit,Cts,我已经实现了大量的测试用例,我希望避免同时运行它们 我创建了自己的测试套件,以便只选择其中的一组: package com.mytests; import junit.framework.Test; import junit.framework.TestSuite; import com.mytests.MyTestClass1; import com.mytests.MyTestClass2; import com.mytests.MyTestClass3; public class Cu
package com.mytests;
import junit.framework.Test;
import junit.framework.TestSuite;
import com.mytests.MyTestClass1;
import com.mytests.MyTestClass2;
import com.mytests.MyTestClass3;
public class CustomSuite extends TestSuite {
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(createTest(MyTestClass1.class, "test3"));
suite.addTest(createTest(MyTestClass2.class, "test2"));
suite.addTestSuite(MyTestClass3.class);
return suite;
我能够通过Eclipse Run As>>Android JUnit测试毫无问题地启动它。但我的目标是能够通过startcts脚本运行它
cts_host > start --plan MyPlan -p com.mytests.CustomSuite
The specific test package does not exist: com.mytests.CustomSuite
cts_host > start --plan MyPlan -t com.mytests.CustomSuite#Test
The specific test does not exist: com.mytests.CustomSuite#Test
我的想法快用完了。有人知道怎么做吗
谢谢,
文森特我不是这方面的专家,但我有一件事要建议。 在CTS中,有一个包含xml文件的plans目录。它们包含用于启动CTS的CTS测试列表。你的测试是在他们中的任何一个吗