Home
last modified time | relevance | path

Searched refs:TestStatus (Results 1 – 25 of 53) sorted by relevance

123

/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DTestStatus.java21 public enum TestStatus { enum
36 public static com.android.ddmlib.testrunner.TestResult.TestStatus convertToDdmlibType( in convertToDdmlibType()
37 TestStatus status) { in convertToDdmlibType()
40 return com.android.ddmlib.testrunner.TestResult.TestStatus.FAILURE; in convertToDdmlibType()
42 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
44 return com.android.ddmlib.testrunner.TestResult.TestStatus.INCOMPLETE; in convertToDdmlibType()
46 return com.android.ddmlib.testrunner.TestResult.TestStatus.ASSUMPTION_FAILURE; in convertToDdmlibType()
48 return com.android.ddmlib.testrunner.TestResult.TestStatus.IGNORED; in convertToDdmlibType()
51 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
53 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DCountingTestResultListenerTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
42 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
44 assertThat(mResultListener.getResultCounts()[TestStatus.PASSED.ordinal()]).isEqualTo(1); in testPassed()
45 assertThat(mResultListener.getResultCounts()[TestStatus.FAILURE.ordinal()]).isEqualTo(0); in testPassed()
50 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in testFailed()
52 assertThat(mResultListener.getResultCounts()[TestStatus.PASSED.ordinal()]).isEqualTo(0); in testFailed()
53 assertThat(mResultListener.getResultCounts()[TestStatus.FAILURE.ordinal()]).isEqualTo(1); in testFailed()
58 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in duplicateResults()
59 assertThat(mResultListener.getResultCounts()[TestStatus.INCOMPLETE.ordinal()]).isEqualTo(1); in duplicateResults()
60 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in duplicateResults()
[all …]
DTestResultTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
37 testResults.add(createResult(TestStatus.PASSED, null, 2, 5)); in testMerge_singleRes()
40 assertEquals(TestStatus.PASSED, finalRes.getStatus()); in testMerge_singleRes()
49 testResults.add(createResult(TestStatus.PASSED, null, 2, 5)); in testMerge_multiRes_aggPass()
50 testResults.add(createResult(TestStatus.FAILURE, "failed", 6, 7)); in testMerge_multiRes_aggPass()
54 assertEquals(TestStatus.PASSED, finalRes.getStatus()); in testMerge_multiRes_aggPass()
64 testResults.add(createResult(TestStatus.FAILURE, "failed", 2, 5)); in testMerge_allFailed_aggPass()
65 testResults.add(createResult(TestStatus.FAILURE, "failed", 6, 7)); in testMerge_allFailed_aggPass()
69 assertEquals(TestStatus.FAILURE, finalRes.getStatus()); in testMerge_allFailed_aggPass()
78 testResults.add(createResult(TestStatus.PASSED, null, 2, 5)); in testMerge_multiRes()
[all …]
DTestResultListenerTest.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
57 Truth.assertThat(mResults).containsEntry(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
66 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
78 Truth.assertThat(mResults).containsEntry(mTest, createTestResult(TestStatus.PASSED)); in missingTestEnded()
80 .containsEntry(incompleteTest, createTestResult(TestStatus.INCOMPLETE)); in missingTestEnded()
90 .containsEntry(incompleteTest, createTestResult(TestStatus.INCOMPLETE)); in incompleteDueToCrash()
94 private TestResult createTestResult(TestStatus status) { in createTestResult()
DConsoleResultReporterTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
55 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
62 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed_suppressedPassed()
68 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
79 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed_suppressPassed()
89 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testSummary()
110 private TestResult createTestResult(TestStatus status) { in createTestResult()
DCollectingTestListenerTest.java69 .isEqualTo(TestStatus.PASSED); in testSingleRun()
107 assertThat(mCollectingTestListener.getNumTestsInState(TestStatus.PASSED)).isEqualTo(2); in testTwoRuns()
118 .isEqualTo(TestStatus.PASSED); in testTwoRuns()
120 .isEqualTo(TestStatus.PASSED); in testTwoRuns()
134 assertThat(mCollectingTestListener.getNumTestsInState(TestStatus.PASSED)).isEqualTo(2); in testReRun()
137 assertThat(runResult.getNumTestsInState(TestStatus.PASSED)).isEqualTo(2); in testReRun()
151 assertThat(mCollectingTestListener.getNumTestsInState(TestStatus.PASSED)).isEqualTo(0); in testReRun_overlap()
152 assertThat(mCollectingTestListener.getNumTestsInState(TestStatus.FAILURE)).isEqualTo(1); in testReRun_overlap()
155 assertThat(runResult.getNumTestsInState(TestStatus.PASSED)).isEqualTo(0); in testReRun_overlap()
156 assertThat(runResult.getNumTestsInState(TestStatus.FAILURE)).isEqualTo(1); in testReRun_overlap()
[all …]
DTestRunResultTest.java45 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState()
47 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState()
48 assertEquals(1, result.getNumTestsInState(TestStatus.INCOMPLETE)); in testGetNumTestsInState()
50 assertEquals(1, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState()
51 assertEquals(0, result.getNumTestsInState(TestStatus.INCOMPLETE)); in testGetNumTestsInState()
61 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState_failed()
63 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState_failed()
64 assertEquals(1, result.getNumTestsInState(TestStatus.INCOMPLETE)); in testGetNumTestsInState_failed()
67 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState_failed()
68 assertEquals(1, result.getNumTestsInState(TestStatus.FAILURE)); in testGetNumTestsInState_failed()
[all …]
DPassingTestFileReporterTest.java60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed()
69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
76 private com.android.tradefed.result.TestResult createTestResult(TestResult.TestStatus status) { in createTestResult()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestResult.java36 private TestStatus mStatus;
47 mStatus = TestStatus.INCOMPLETE; in TestResult()
55 public com.android.ddmlib.testrunner.TestResult.TestStatus getStatus() { in getStatus()
56 return TestStatus.convertToDdmlibType(mStatus); in getStatus()
60 public TestStatus getResultStatus() { in getResultStatus()
141 public TestResult setStatus(com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in setStatus()
142 mStatus = TestStatus.convertFromDdmlibType(ddmlibStatus); in setStatus()
147 public TestResult setStatus(TestStatus status) { in setStatus()
231 TestStatus lastStatus = null; in merge()
273 mergedResult.setStatus(TestStatus.PASSED); in merge()
[all …]
DTestRunResult.java60 private int[] mStatusCounts = new int[com.android.tradefed.result.TestStatus.values().length];
102 List<TestStatus> completedStatuses = new ArrayList<>(); in getCompletedTests()
103 for (TestStatus s : TestStatus.values()) { in getCompletedTests()
104 if (!s.equals(TestStatus.INCOMPLETE)) { in getCompletedTests()
113 return getTestsInState(Arrays.asList(TestStatus.FAILURE)); in getFailedTests()
118 return getTestsInState(Arrays.asList(TestStatus.PASSED)); in getPassedTests()
122 public Set<TestDescription> getTestsInState(List<TestStatus> statuses) { in getTestsInState()
125 TestStatus status = testEntry.getValue().getResultStatus(); in getTestsInState()
172 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in getNumTestsInState()
173 return getNumTestsInState(TestStatus.convertFromDdmlibType(ddmlibStatus)); in getNumTestsInState()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DCountingTestResultListener.java26 private Map<TestDescription, TestStatus> mResults = new ConcurrentHashMap<>();
41 int[] results = new int[TestStatus.values().length]; in getResultCounts()
42 Collection<TestStatus> data = mResults.values(); in getResultCounts()
43 for (TestStatus status : data) { in getResultCounts()
60 return results[TestStatus.INCOMPLETE.ordinal()] > 0 in hasFailedTests()
61 || results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0 in hasFailedTests()
62 || results[TestStatus.FAILURE.ordinal()] > 0 in hasFailedTests()
63 || results[TestStatus.SKIPPED.ordinal()] > 0; in hasFailedTests()
DConsoleResultReporter.java91 if (mSuppressPassedTest && TestStatus.PASSED.equals(result.getResultStatus())) { in testResult()
94 if (mDisplayFailureSummary && TestStatus.FAILURE.equals(result.getResultStatus())) { in testResult()
145 sb.append(results[TestStatus.PASSED.ordinal()]); in invocationEnded()
147 if (results[TestStatus.FAILURE.ordinal()] > 0) { in invocationEnded()
149 sb.append(results[TestStatus.FAILURE.ordinal()]); in invocationEnded()
152 if (results[TestStatus.IGNORED.ordinal()] > 0) { in invocationEnded()
154 sb.append(results[TestStatus.IGNORED.ordinal()]); in invocationEnded()
157 if (results[TestStatus.SKIPPED.ordinal()] > 0) { in invocationEnded()
159 sb.append(results[TestStatus.SKIPPED.ordinal()]); in invocationEnded()
162 if (results[TestStatus.ASSUMPTION_FAILURE.ordinal()] > 0) { in invocationEnded()
[all …]
DEventsLoggerListener.java33 private TestStatus mTestCaseStatus = null;
127 mTestCaseStatus = TestStatus.PASSED; in testStarted()
132 mTestCaseStatus = TestStatus.IGNORED; in testIgnored()
137 mTestCaseStatus = TestStatus.FAILURE; in testFailed()
142 mTestCaseStatus = TestStatus.FAILURE; in testFailed()
147 mTestCaseStatus = TestStatus.ASSUMPTION_FAILURE; in testAssumptionFailure()
152 mTestCaseStatus = TestStatus.ASSUMPTION_FAILURE; in testAssumptionFailure()
157 mTestCaseStatus = TestStatus.SKIPPED; in testSkipped()
DTestResultListener.java58 mCurrentResult.setStatus(TestStatus.FAILURE); in testFailed()
64 mCurrentResult.setStatus(TestStatus.ASSUMPTION_FAILURE); in testAssumptionFailure()
70 mCurrentResult.setStatus(TestStatus.SKIPPED); in testSkipped()
76 mCurrentResult.setStatus(TestStatus.IGNORED); in testIgnored()
123 && TestStatus.INCOMPLETE.equals(mCurrentResult.getResultStatus())) { in reportTestFinish()
124 mCurrentResult.setStatus(TestStatus.PASSED); in reportTestFinish()
DLUCIResultReporter.java92 private static Map<TestStatus, String> resultMap =
94 TestStatus.FAILURE, "FAIL",
95 TestStatus.PASSED, "PASS",
96 TestStatus.INCOMPLETE, "CRASH",
97 TestStatus.ASSUMPTION_FAILURE, "SKIP",
98 TestStatus.IGNORED, "SKIP",
99 TestStatus.SKIPPED, "SKIP");
195 TestStatus rawStatus = testResult.getResultStatus(); in convertMetricsToJson()
201 if (rawStatus == TestStatus.FAILURE || rawStatus == TestStatus.INCOMPLETE in convertMetricsToJson()
202 || rawStatus == TestStatus.ASSUMPTION_FAILURE) { in convertMetricsToJson()
DXmlResultReporter.java151 NS, ATTR_FAILURES, Integer.toString(getNumTestsInState(TestStatus.FAILURE))); in printTestResults()
179 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus = testResult.getStatus(); in print()
180 TestStatus tfStatus = TestStatus.convertFromDdmlibType(ddmlibStatus); in print()
182 if (TestStatus.IGNORED.equals(tfStatus)) { in print()
186 } else if (!TestStatus.PASSED.equals(tfStatus)) { in print()
188 if (TestStatus.FAILURE.equals(tfStatus)) { in print()
190 } else if (TestStatus.ASSUMPTION_FAILURE.equals(tfStatus)) { in print()
DCollectingTestListener.java91 private int[] mStatusCounts = new int[TestStatus.values().length];
372 for (TestStatus s : TestStatus.values()) { in getNumTotalTests()
398 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in getNumTestsInState()
400 return mStatusCounts[TestStatus.convertFromDdmlibType(ddmlibStatus).ordinal()]; in getNumTestsInState()
404 public int getNumTestsInState(TestStatus status) { in getNumTestsInState()
430 return getNumTestsInState(TestStatus.FAILURE); in getNumAllFailedTests()
489 for (TestStatus s : TestStatus.values()) { in computeMergedResults()
495 for (TestStatus s : TestStatus.values()) { in computeMergedResults()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryResultHelper.java20 import com.android.tradefed.result.TestStatus;
37 for (TestStatus status : getStatusesToRun(types)) { in shouldRunModule()
53 private static Set<TestStatus> getStatusesToRun(List<RetryType> types) { in getStatusesToRun()
54 Set<TestStatus> statusesToRun = new LinkedHashSet<>(); in getStatusesToRun()
56 statusesToRun.add(TestStatus.FAILURE); in getStatusesToRun()
57 statusesToRun.add(TestStatus.SKIPPED); in getStatusesToRun()
58 statusesToRun.add(TestStatus.INCOMPLETE); in getStatusesToRun()
61 statusesToRun.add(TestStatus.INCOMPLETE); in getStatusesToRun()
62 statusesToRun.add(TestStatus.SKIPPED); in getStatusesToRun()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java32 import com.android.tradefed.result.TestStatus;
50 private TestStatus mTestStatus;
162 mTestStatus = TestStatus.PASSED; in testStarted()
167 mTestStatus = TestStatus.IGNORED; in testStarted()
172 private void logTestStatus(TestDescription testName, TestStatus status) { in logTestStatus()
188 if (TestStatus.PASSED.equals(status)) { in logTestStatus()
218 mTestStatus = TestStatus.IGNORED; in testIgnored()
224 mTestStatus = TestStatus.ASSUMPTION_FAILURE; in testAssumptionFailure()
231 mTestStatus = TestStatus.ASSUMPTION_FAILURE; in testAssumptionFailure()
237 mTestStatus = TestStatus.SKIPPED; in testSkipped()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java35 import com.android.tradefed.result.proto.TestRecordProto.TestStatus;
236 mInvocationRecordBuilder.setStatus(TestStatus.FAIL); in invocationEnded()
238 mInvocationRecordBuilder.setStatus(TestStatus.PASS); in invocationEnded()
287 moduleBuilder.setStatus(TestStatus.PASS); in testModuleEnded()
342 if (TestStatus.UNKNOWN.equals(current.getStatus())) { in testRunFailed()
344 current.setStatus(TestStatus.FAIL); in testRunFailed()
350 run.setStatus(TestStatus.FAIL); in testRunFailed()
382 if (TestStatus.UNKNOWN.equals(current.getStatus())) { in testRunFailed()
384 current.setStatus(TestStatus.FAIL); in testRunFailed()
390 run.setStatus(TestStatus.FAIL); in testRunFailed()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/proto/
DTestRecordProtoUtilTest.java22 import com.android.tradefed.result.proto.TestRecordProto.TestStatus;
45 assertEquals(TestStatus.ASSUMPTION_FAILURE, record.getStatus()); in testRead()
54 builder.setStatus(TestStatus.ASSUMPTION_FAILURE); in dumpTestRecord()
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelXmlResultReporter.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
218 if (testEntry.getValue().getStatus().equals(TestStatus.IGNORED)) { in writeTestResult()
242 testSuite, "failures", testRunResult.getNumTestsInState(TestStatus.FAILURE)); in writeTestSuite()
249 testRunResult.getNumTestsInState(TestStatus.ASSUMPTION_FAILURE)); in writeTestSuite()
252 testSuite, "disabled", testRunResult.getNumTestsInState(TestStatus.IGNORED)); in writeTestSuite()
260 TestStatus status = result.getStatus(); in writeTestCase()
270 if (status.equals(TestStatus.FAILURE)) { in writeTestCase()
272 } else if (status.equals(TestStatus.ASSUMPTION_FAILURE)) { in writeTestCase()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapperTest.java29 import com.android.ddmlib.testrunner.TestResult.TestStatus;
423 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase).getStatus()); in testRun_withMultipleRun()
424 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun()
425 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun()
482 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase).getStatus()); // became pass in testRun_withMultipleRun_becomePass()
483 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun_becomePass()
484 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun_becomePass()
541 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase).getStatus()); // became pass in testRun_withMultipleRun_AllBecomePass()
542 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun_AllBecomePass()
543 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun_AllBecomePass()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java139 enum TestStatus { enum in GTestResultParser
631 private void doTestEnded(String identifier, TestStatus testStatus) { in doTestEnded()
690 } else if (TestStatus.FAILED.equals(testStatus)) { // test failed in doTestEnded()
695 } else if (TestStatus.SKIPPED.equals(testStatus)) { // test was skipped in doTestEnded()
719 doTestEnded(identifier, TestStatus.OK); in processOKTag()
729 doTestEnded(identifier, TestStatus.FAILED); in processFailedTag()
739 doTestEnded(identifier, TestStatus.SKIPPED); in processSkippedTag()
/tools/asuite/atest/tf_proto/
Dtest_record.proto45 TestStatus status = 5;
82 enum TestStatus { enum
90 // Associated debugging information to accompany a TestStatus.
105 // A Fail TestStatus can be associated with a more granular failure status that helps understanding

123