2017-07-18 47 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" 
相關問題