如何在记录测试结果时解决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.

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"

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