寻找在 Android 中生成测试结果报告的好工具。
我正在尝试连接Allure为我的 Android 集成测试生成报告。作为测试框架,我使用的是Robotium。
找不到任何教程如何集成此工具。
可能吗?或者对生成报告的工具有什么建议?
这是我的 build.gradle
configurations {
agent
}
connectedCheck.doFirst {
jvmArgs "-javaagent:${configurations.agent.singleFile}"
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.2.1'
agent "org.aspectj:aspectjweaver:${aspectjVersion}"
androidTestCompile "ru.yandex.qatools.allure:allure-testng-adaptor:${allureVersion}"
}
和输出:
1 error; aborting
:app:preDexDebugTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexDebugTest'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/Users/vovs/Android/android-sdk-macosx/build-tools/20.0.0/dx --dex --output /Users/vovs/Android/tmps/Robotium/app/build/intermediates/pre-dexed/test/debug/jaxb-api-2.2.7-5a4c4fa528666ece797bf985f28cd3e7059e62ce.jar /Users/vsvydenko/.gradle/caches/modules-2/files-2.1/javax.xml.bind/jaxb-api/2.2.7/2f51c4bb4724ea408096ee9100ff2827e07e5b7c/jaxb-api-2.2.7.jar
Error Code:
1
Output:
trouble processing "javax/xml/bind/annotation/adapters/CollapsedStringAdapter.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
...