1

我已阅读相关问题

但是,我使用的是'androidx.test:orchestrator:1.4.0'1.2.0 以下不应该存在的错误。

我的情况是,我会得到错误:com.android.build.gradle.internal.testing.ConnectedDevice > No tests found.[GM1910 - 11] FAILED如果我启用:

    testOptions {
        execution 'ANDROIDX_TEST_ORCHESTRATOR'
    }

我已经完成了前缀操作:

$ curl -O https://dl.google.com/android/maven2/androidx/test/orchestrator/1.4.0/orchestrator-1.4.0.apk

$ curl -O https://dl.google.com/android/maven2/androidx/test/services/test-services/1.4.0/test-services-1.4.0.apk

$ adb install -r orchestrator-1.4.0.apk

$ adb install -r test-services-1.4.0.apk

$ adb shell 'CLASSPATH=$(pm path androidx.test.services) app_process / \
                              androidx.test.services.shellexecutor.ShellMain am instrument -w -e \
                              targetInstrumentation com.example.notroid/androidx.test.runner.AndroidJUnitRunner \
                              androidx.test.orchestrator/.AndroidTestOrchestrator'


Time: 0

OK (0 tests)
4

0 回答 0