Ruslan Doronichev Ruslan Doronichev - 1 year ago 122
PHP Question

How to solve Jenkins build error on recording test results?

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.

Answer Source

If you use behat3, then make sure that its version has junit formatter support, as it was missed in early versions

Also check that you have configured profile at behat.yml

behat 2

        name: pretty,junit
            output_path: ,build/logs/behat

behat 3

        junit: [build/log/behat]

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download