2017-07-18 45 views
0

我想介绍我的Android项目的CI,下载Windows服务器的试用版Installation竹Junit测试解析器对于Android项目

添加脚本任务编译项目 “./gradlew assembleDebug测试”

我想显示JUnit测试结果,我加入了JUnit测试解析器下方配置

Specify custom results directories 
**/test-results/debug/*.xml 

获得以下在控制台和生成错误失败

\bamboo-home\xml-data\build-dir\COL-CI-JOB1>./gradlew assembleDebug test 
18-Jul-2017 22:58:51 Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" 
18-Jul-2017 22:58:51 java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager 
18-Jul-2017 22:58:51   at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
18-Jul-2017 22:58:51   at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
18-Jul-2017 22:58:51   at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
18-Jul-2017 22:58:51   at java.util.logging.LogManager$1.run(LogManager.java:195) 
18-Jul-2017 22:58:51   at java.util.logging.LogManager$1.run(LogManager.java:181) 
18-Jul-2017 22:58:51   at java.security.AccessController.doPrivileged(Native Method) 
18-Jul-2017 22:58:51   at java.util.logging.LogManager.<clinit>(LogManager.java:181) 
18-Jul-2017 22:58:51   at java.util.logging.Logger.demandLogger(Logger.java:448) 
+0

我建议谷歌搜索的错误消息。很可能其他人已经遇到了这个问题并找到了解决方案。 –

回答

0

可能是该帮助的人:在这个 更多信息link

检查JUnit任务配置并确认您已将其配置为在作业的当前工作目录中查找测试结果文件:/ home/bamboo/home/xml-data/build-dir/CLX- BUILD-TEST,而不是像以下这样的子目录:/ home/bamboo/home/xml-data/build-dir/CLX-BUILD-TEST/test-reports。

Referecnce

set the Junit Test Result Path 
Specify custom results directories 
/**app/**/test-results/**/*.xml 

Advanced options 
checked "Pick up test results that were created outside of this build" 
相关问题