Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
库中的androidTestUtil_Android_Testing - Fatal编程技术网

库中的androidTestUtil

库中的androidTestUtil,android,testing,Android,Testing,我有一个包含测试管家的库。所以在图书馆里我喜欢 implementation 'com.linkedin.testbutler:test-butler-library:2.1.0' 在使用此库的应用程序中,我执行以下操作: androidTestImplementation 'com.github.mylib...' 现在我想知道如何对androidTestUtil执行同样的操作-希望依赖项: androidTestUtil'com.linkedin.testbutler:testbutle

我有一个包含测试管家的库。所以在图书馆里我喜欢

implementation 'com.linkedin.testbutler:test-butler-library:2.1.0'
在使用此库的应用程序中,我执行以下操作:

androidTestImplementation 'com.github.mylib...'
现在我想知道如何对androidTestUtil执行同样的操作-希望依赖项:

androidTestUtil'com.linkedin.testbutler:testbutler应用程序:2.1.0'


通过lib提供,无需在应用程序中声明。

不幸的是,我认为这不可能直接实现。我能想到的唯一一件事就是拥有一个应用程序使用的定制Gradle插件,该插件依赖于AGP,并在Test Butler应用程序上添加
androidTestUtil
依赖项。不过,这似乎非常不必要,而且仅仅直接添加依赖项并不能为应用程序节省很多钱。

不幸的是,我认为这不可能直接实现。我能想到的唯一一件事就是拥有一个应用程序使用的定制Gradle插件,该插件依赖于AGP,并在Test Butler应用程序上添加
androidTestUtil
依赖项。不过,这似乎非常不必要,而且仅仅直接添加依赖项并不会为应用程序节省太多