0
非常に多くのテストケースを実装しており、それらを一度に実行しないようにしたいと考えています。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 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の(別のユーザーとして実行>> 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
私はアイデアが不足しています。誰もそれを行う方法を知っていますか?
おかげで、 ヴィンセント