douhushen3241
2015-04-27 12:21
浏览 290
已采纳

如何在记录测试结果时解决Jenkins构建错误?

After all the successful steps of my Jenkins build I get an error:

Recording test results

"ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception hudson.AbortException: No test report files were found. Configuration error?"

I tried to search the answer in Jenkins documentation and on stack-overflow, however I didn't find any answer.

图片转代码服务由CSDN问答提供 功能建议

在我的Jenkins构建的所有成功步骤之后,我收到一个错误:

记录测试结果

“错误:发布者hudson.tasks.junit.JUnitResultArchiver因异常而中止 hudson.AbortException:未找到测试报告文件。配置错误 ?“

我试图在Jenkins文档和堆栈溢出中搜索答案,但是我没有找到任何答案。 < / DIV>

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dongyiyu3953 2015-04-29 16:14
    已采纳

    If you use behat3, then make sure that its version has junit formatter support, as it was missed in early versions https://github.com/Behat/Behat/pull/676

    Also check that you have configured profile at behat.yml

    behat 2

    jenkins:  
        formatter:
            name: pretty,junit
            parameters:
                output_path: ,build/logs/behat
    

    behat 3

    jenkins:
        formatters:
            junit: [build/log/behat]
    

    Also build.xml must call it as "behat --profile jenkins"

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • dqk77945 2016-07-18 18:02

    I may assume that you have configured your test result path not to be related to Jenkins workspace (usually, this is the directory which you run tests from). JUnit result xml path should be configured in relation with Jenkins workspace directory, which is the root directory for you xml reports. your report in workspace

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题