我的应用程序是作为一个多模块项目(与动态模块)实现的,其中有一个共享模块和espresso测试。这些浓缩咖啡测试给了我不同的结果,这取决于我是从Android还是从命令行运行它们。当我从命令行运行测试时,我发现的问题是它试图针对错误的字符串资源进行断言。但是,当它从命令行运行时,断言在此输出中失败。found matching: with str
我编写了一个Espresso测试失败(没有找到匹配视图)。onView((allOf(withText("OK"), hasSibling(withText("Text"))))).perform(click());androidx.test.espresso.NoMatchingViewExceptionsibling: with text: is "Text")
If the target view is not part of the view hiera
我的单元和UI测试放在"androidTest“文件夹中。测试运行得很顺利,但当我试图获得代码覆盖率时(两者都使用覆盖率或./gradlew createDebugCoverageReport从命令行界面运行),我得到了不同类型的错误。 testCompile 'com.android.support.test:rules:0.4.1'
te
/maven2/com/android/support/test/espresso/espresso-core/3.0.2/espresso-core-3.0.2.pom.sha1 80 ms
Downloadhttp://drgames.fr/maven2/com/android/support/test/espresso