我正在尝试为我的Android项目引入CI,请下载适用于Windows Installation的Bamboo服务器试用版。
添加了脚本任务来编译项目 " ./ gradlew assembleDebug test"
我想显示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。
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"