blob: cc3c46318a6658df274d1e22b9942281d30bf534 [file] [log] [blame]
Cole Faust6d7fc252021-04-08 16:56:11 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<!-- This AndroidTest.xml is mostly autogenerated, except for the
17 line adding -no-window-animation. If you remove this file, you
18 can find the autogenerated version in
19 $OUT/testcases/CarUILibUnitTests/CarUILibUnitTests.config.
20 Although not explicitly referenced from our Android.bp, it is
21 picked up and used instead of the autogenerated version as long
22 as it has the name "AndroidTest.xml".
23
24 -no-window-animation is needed because of the new sparkle
25 animation on ripples. It causes espresso's
26 onView(...).perform(click()) to fail, because normally it
27 sends a touch down event, waits for idle, then sends a touch
28 up event. The sparkle animation causes the system to never be
29 idle, and thus the button will just be held down forever. -->
30<configuration description="Runs Chassis Test Cases.">
31 <option name="test-suite-tag" value="apct" />
32 <option name="test-suite-tag" value="apct-instrumentation" />
33
34 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
35 <option name="cleanup-apks" value="true" />
36 <option name="test-file-name" value="CarUILibUnitTests.apk" />
37 </target_preparer>
38
39 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
40 <option name="package" value="com.android.car.ui.test" />
41 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
42 <option name="instrumentation-arg" key="thisisignored" value="thisisignored --no-window-animation" />
43 </test>
44</configuration>