espresso 依赖项总是混淆要添加的内容
espresso dependencies always confusing what to add
Android Studio 2.1 Preview 5
我想知道我应该在我的 build.gradle
文件中包含什么来使用浓缩咖啡。我 google 我得到的所有依赖项的不同组合都包含在内。
有人这样做:
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
并来自该网站 https://google.github.io/android-testing-support-library/docs/espresso/setup/
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
任何人都可以提供我应该遵循的标准方式吗?
非常感谢您的任何建议,
这取决于您使用的浓缩咖啡的版本。 testing-support-lib:0.1
was correct 对于(较旧的)版本 2.0。
如果你想使用 Espresso 2.2.2,这是正确的:
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
对于较新的版本,将更新说明 here。
Android Studio 2.1 Preview 5
我想知道我应该在我的 build.gradle
文件中包含什么来使用浓缩咖啡。我 google 我得到的所有依赖项的不同组合都包含在内。
有人这样做:
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
并来自该网站 https://google.github.io/android-testing-support-library/docs/espresso/setup/
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
任何人都可以提供我应该遵循的标准方式吗?
非常感谢您的任何建议,
这取决于您使用的浓缩咖啡的版本。 testing-support-lib:0.1
was correct 对于(较旧的)版本 2.0。
如果你想使用 Espresso 2.2.2,这是正确的:
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
对于较新的版本,将更新说明 here。