瀏覽代碼

Use android test orchestrator

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 年之前
父節點
當前提交
9fce154e99
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      build.gradle

+ 3 - 0
build.gradle

@@ -131,6 +131,7 @@ android {
         testInstrumentationRunnerArgument "TEST_SERVER_USERNAME", "${NC_TEST_SERVER_USERNAME}"
         testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
         testInstrumentationRunnerArguments disableAnalytics: 'true'
+        testInstrumentationRunnerArguments clearPackageData: 'true'
 
         multiDexEnabled true
 
@@ -184,6 +185,7 @@ android {
 
         testOptions {
             unitTests.returnDefaultValues = true
+            execution 'ANDROIDX_TEST_ORCHESTRATOR'
         }
     }
 
@@ -358,6 +360,7 @@ dependencies {
     androidTestImplementation 'androidx.test:rules:1.2.0'
     // Android JUnit Runner
     androidTestImplementation 'androidx.test:runner:1.2.0'
+    androidTestUtil 'androidx.test:orchestrator:1.1.0'
 
     // Espresso core
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'