Home
last modified time | relevance | path

Searched refs:runner (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DScheduledScenarioRunnerTest.java42 import org.junit.runner.RunWith;
43 import org.junit.runner.notification.Failure;
44 import org.junit.runner.notification.RunListener;
45 import org.junit.runner.notification.RunNotifier;
99 ScheduledScenarioRunner runner = in testOverTimeTest_throwsTestTimedOutException() local
106 runner.run(mRunNotifier); in testOverTimeTest_throwsTestTimedOutException()
123 long expectedTimeout = timeoutMs - runner.getTeardownLeeway(); in testOverTimeTest_throwsTestTimedOutException()
141 ScheduledScenarioRunner runner = in testOverTimeTest_doesNotIdleBeforeTeardown() local
148 runner.run(mRunNotifier); in testOverTimeTest_doesNotIdleBeforeTeardown()
151 verify(runner, never()).performIdleBeforeTeardown(anyLong()); in testOverTimeTest_doesNotIdleBeforeTeardown()
[all …]
DProfileSuiteTest.java50 import org.junit.runner.RunWith;
51 import org.junit.runner.notification.Failure;
52 import org.junit.runner.notification.RunNotifier;
216 runner -> in testTimestampScheduling_respectsSchedule()
217 runner.getDescription() in testTimestampScheduling_respectsSchedule()
236 runner -> in testTimestampScheduling_respectsSchedule()
237 runner.getDescription() in testTimestampScheduling_respectsSchedule()
251 runner -> in testTimestampScheduling_respectsSchedule()
252 runner.getDescription() in testTimestampScheduling_respectsSchedule()
261 runner -> in testTimestampScheduling_respectsSchedule()
[all …]
DLongevitySuiteTest.java36 import org.junit.runner.Runner;
37 import org.junit.runner.RunWith;
38 import org.junit.runner.notification.RunNotifier;
126 LongevityClassRunner runner = in testReportingIteration_notSet()
128 runners.add(runner); in testReportingIteration_notSet()
129 return runner; in testReportingIteration_notSet()
162 LongevityClassRunner runner = in testReportingIteration_set()
164 runners.add(runner); in testReportingIteration_set()
165 return runner; in testReportingIteration_set()
205 LongevityClassRunner runner = in testAdditionalRunners()
[all …]
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevitySuite.java36 import org.junit.runner.Description;
37 import org.junit.runner.Runner;
38 import org.junit.runner.notification.RunNotifier;
155 Runner runner = null; in constructClassRunners() local
157 runner = builder.runnerForClass(scenario); in constructClassRunners()
163 if (runner instanceof ErrorReportingRunner) { in constructClassRunners()
164 throw new InitializationError(getCauses((ErrorReportingRunner) runner)); in constructClassRunners()
167 if (!(runner instanceof BlockJUnit4ClassRunner) && !isIgnoredRunner(runner)) { in constructClassRunners()
171 runner.getClass(), runner.getDescription().getDisplayName())); in constructClassRunners()
194 protected void runChild(Runner runner, final RunNotifier notifier) { in runChild() argument
[all …]
DProfileSuite.java28 import org.junit.runner.Runner;
29 import org.junit.runner.notification.RunNotifier;
84 Runner runner = null; in constructClassRunners() local
86 runner = builder.runnerForClass(scenario); in constructClassRunners()
96 runner.getDescription().getDisplayName())); in constructClassRunners()
99 if (!(runner instanceof BlockJUnit4ClassRunner) && !isIgnoredRunner(runner)) { in constructClassRunners()
104 runner.getClass(), runner.getDescription().getDisplayName())); in constructClassRunners()
134 protected void runChild(Runner runner, final RunNotifier notifier) { in runChild() argument
137 super.runChild(runner, notifier); in runChild()
155 super.runChild(runner, notifier); in runChild()
[all …]
/platform_testing/libraries/rdroidtest/src/
Dlib.rs3 pub mod runner; module
21 $crate::runner::main()
42 #[$crate::_linkme::distributed_slice($crate::runner::RDROIDTEST_TESTS)]
46 move || $crate::runner::run($test_name),
53 #[$crate::_linkme::distributed_slice($crate::runner::RDROIDTEST_TESTS)]
57 move || $crate::runner::run($test_name),
91 #[$crate::_linkme::distributed_slice($crate::runner::RDROIDTEST_PTESTS)]
96 move || $crate::runner::run(|| $test_name(val)),
104 #[$crate::_linkme::distributed_slice($crate::runner::RDROIDTEST_PTESTS)]
110 move || $crate::runner::run(|| $test_name(val)),
/platform_testing/libraries/health/utils/tests/src/android/platform/test/util/
DHealthRunnerBuilderTest.java25 import org.junit.runner.Runner;
26 import org.junit.runner.RunWith;
55 Runner runner = (new HealthRunnerBuilder(new Bundle())).runnerForClass(SampleTest.class); in testDefaultsToJUnit4() local
56 assertTrue(runner instanceof JUnit4); in testDefaultsToJUnit4()
64 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_valid() local
65 assertTrue(runner instanceof SampleRunner); in testUsingSpecifiedRunner_valid()
74 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_invalid_notClass() local
83 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_invalid_notRunner() local
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DArtifactAssertionRunnerTest.kt58 val runner = ArtifactAssertionRunner(result) in executes() constant
59 val firstAssertionResult = runner.runAssertion(assertionSuccess) in executes()
60 val lastAssertionResult = runner.runAssertion(assertionSuccess) in executes()
73 val runner = ArtifactAssertionRunner(result) in executesFailure() constant
74 val firstAssertionResult = runner.runAssertion(assertionFailure) in executesFailure()
75 val lastAssertionResult = runner.runAssertion(assertionFailure) in executesFailure()
93 val runner = ArtifactAssertionRunner(result) in updatesRunStatusFailureFirst() constant
94 val firstAssertionResult = runner.runAssertion(assertionFailure) in updatesRunStatusFailureFirst()
95 val lastAssertionResult = runner.runAssertion(assertionSuccess) in updatesRunStatusFailureFirst()
107 val runner = ArtifactAssertionRunner(result) in updatesRunStatusFailureLast() constant
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DLegacyFlickerJUnit4ClassRunnerTest.kt52 import org.junit.runner.Description in <lambda>()
53 import org.junit.runner.RunWith in <lambda>()
54 import org.junit.runner.manipulation.Filter in <lambda>()
55 import org.junit.runner.notification.RunNotifier in <lambda>()
79 val runner = createRunner(test) in <lambda>() constant
80 runner.run(RunNotifier()) in <lambda>()
95 val runner = createRunner(test) in <lambda>() constant
96 runner.run(RunNotifier()) in <lambda>()
111 val runner = createRunner(test) in <lambda>() constant
112 runner.run(RunNotifier()) in <lambda>()
[all …]
DFlickerServiceJUnit4ClassRunnerTest.kt42 import org.junit.runner.RunWith in <lambda>()
43 import org.junit.runner.notification.RunNotifier in <lambda>()
51 val runner = FlickerServiceJUnit4ClassRunner(SimpleTest::class.java) in <lambda>() constant
52 runner.run(RunNotifier()) in <lambda>()
61 val runner = FlickerServiceJUnit4ClassRunner(SimpleTest::class.java, arguments = arguments) in <lambda>() constant
63 runner.run(notifier) in <lambda>()
65 Truth.assertThat(runner.testCount()).isAtLeast(2) in <lambda>()
80 val runner = FlickerServiceJUnit4ClassRunner(SimpleTest::class.java, arguments = arguments) in <lambda>() constant
82 runner.run(notifier) in <lambda>()
84 Truth.assertThat(runner.testCount()).isAtLeast(2) in <lambda>()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DStringingListener.kt20 import org.junit.runner.Description
21 import org.junit.runner.JUnitCore
22 import org.junit.runner.notification.Failure
23 import org.junit.runner.notification.RunListener
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DCachedAssertionRunnerTest.kt65 val runner = android.tools.flicker.datastore.CachedAssertionRunner(TEST_SCENARIO) in executes() constant
66 val firstAssertionResult = runner.runAssertion(assertionSuccess) in executes()
67 val lastAssertionResult = runner.runAssertion(assertionSuccess) in executes()
80 val runner = android.tools.flicker.datastore.CachedAssertionRunner(TEST_SCENARIO) in executesFailure() constant
81 val firstAssertionResult = runner.runAssertion(assertionFailure) in executesFailure()
82 val lastAssertionResult = runner.runAssertion(assertionFailure) in executesFailure()
100 val runner = android.tools.flicker.datastore.CachedAssertionRunner(TEST_SCENARIO) in updatesRunStatusFailureFirst() constant
101 val firstAssertionResult = runner.runAssertion(assertionFailure) in updatesRunStatusFailureFirst()
102 val lastAssertionResult = runner.runAssertion(assertionSuccess) in updatesRunStatusFailureFirst()
115 val runner = android.tools.flicker.datastore.CachedAssertionRunner(TEST_SCENARIO) in updatesRunStatusFailureLast() constant
[all …]
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DSfStatsListenerTest.java20 import androidx.test.runner.AndroidJUnit4;
26 import org.junit.runner.Description;
27 import org.junit.runner.Result;
28 import org.junit.runner.RunWith;
DStubTestMetricListener.java18 import org.junit.runner.Description;
19 import org.junit.runner.Result;
20 import org.junit.runner.notification.Failure;
DScheduledRunMetricListenerTest.java20 import androidx.test.runner.AndroidJUnit4;
25 import org.junit.runner.Description;
26 import org.junit.runner.Result;
27 import org.junit.runner.RunWith;
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sample/
DPrintListener.java21 import org.junit.runner.Description;
22 import org.junit.runner.Result;
23 import org.junit.runner.notification.Failure;
24 import org.junit.runner.notification.RunListener;
/platform_testing/libraries/health/runners/longevity/host/tests/src/android/host/test/longevity/listener/
DErrorTerminatorTest.java23 import org.junit.runner.Description;
24 import org.junit.runner.RunWith;
25 import org.junit.runner.notification.Failure;
26 import org.junit.runner.notification.RunNotifier;
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DUtils.kt25 import android.tools.flicker.legacy.runner.TransitionRunner
28 import org.junit.runner.Description
64 val runner = TransitionRunner(TEST_SCENARIO, instrumentation) in runTransition() constant
65 runner.execute(flicker, Description.createTestDescription(this::class.java, "test")) in runTransition()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DConsts.kt17 package android.tools.flicker.legacy.runner
19 import org.junit.runner.Description
DTransitionRunnerTest.kt17 package android.tools.flicker.legacy.runner
73 val runner = TransitionRunner(TEST_SCENARIO, instrumentation, ResultWriter()) in runsTransition() constant
82 val result = runner.execute(mockedFlicker, Consts.description(this)) in runsTransition()
95 val runner = TransitionRunner(TEST_SCENARIO, instrumentation, ResultWriter()) in failsWithNoTransitions() constant
103 val result = runner.execute(mockedFlicker, Consts.description(this)) in failsWithNoTransitions()
115 val runner = TransitionRunner(TEST_SCENARIO, instrumentation, ResultWriter()) in failsWithTransitionError() constant
124 val result = runner.execute(mockedFlicker, Consts.description(this)) in failsWithTransitionError()
136 val runner = TransitionRunner(TEST_SCENARIO, instrumentation, ResultWriter()) in failsWithSetupErrorAndHasTraces() constant
145 val result = runner.execute(mockedFlicker, Consts.description(this)) in failsWithSetupErrorAndHasTraces()
157 val runner = TransitionRunner(TEST_SCENARIO, instrumentation, ResultWriter()) in failsWithTeardownErrorAndHasTraces() constant
[all …]
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java33 import androidx.test.internal.runner.TestRequestBuilder;
41 import org.junit.runner.Description;
42 import org.junit.runner.JUnitCore;
43 import org.junit.runner.Request;
44 import org.junit.runner.Result;
45 import org.junit.runner.RunWith;
46 import org.junit.runner.notification.Failure;
47 import org.junit.runner.notification.RunNotifier;
275 Microbenchmark runner = Mockito.spy(new Microbenchmark(LoggingTest.class, args)); in testStopsEarly_ifBatteryLevelIsBelowThreshold() local
276 doReturn(49).when(runner).getBatteryLevel(); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
[all …]
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DErrorTerminator.java18 import org.junit.runner.notification.Failure;
19 import org.junit.runner.notification.RunNotifier;
/platform_testing/libraries/device-collectors/src/test/java/android/device/tests/
DTestEvents.java18 import androidx.test.runner.AndroidJUnit4;
21 import org.junit.runner.RunWith;
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DSystemAppCheck.java20 import androidx.test.runner.AndroidJUnit4;
24 import org.junit.runner.RunWith;
/platform_testing/libraries/health/runners/longevity/
DREADME.md3 This library serves as a test runner for longevity suites, which exercise test cases repeatedly in
18 `java <options> -cp <jar> org.junit.runner.JUnitCore <suite>`
23 org.junit.runner.JUnitCore android.host.test.longevity.samples.SimpleSuite`
29 org.junit.runner.JUnitCore android.host.test.longevity.samples.SimpleSuite`
36 android.platform.test.longevity.samples/androidx.runner.AndroidJUnitRunner`
42 android.platform.test.longevity.samples/androidx.test.runner.AndroidJUnitRunner`
48 android.platform.test.longevity.samples/androidx.test.runner.AndroidJUnitRunner`
54 android.platform.test.longevity.samples/androidx.test.runner.AndroidJUnitRunner`
60 android.platform.test.longevity.samples/androidx.test.runner.AndroidJUnitRunner`
78 org.junit.runner.JUnitCore <test class>`.
[all …]

12345678910>>...27