Jenkins JUnit Test Result Report plugin states that the JUnit xml file is not found?

后端 未结 2 1181
栀梦
栀梦 2020-12-15 05:53

The exact message received from jenkins is:

No test report files were found. Configuration error?
Build step \'Publish JUnit test result report\' changed bui         


        
相关标签:
2条回答
  • 2020-12-15 06:39

    For my Android project which has multiple Gradle product flavors I used the following path for Test report XMLs:

    **/build/test-results/**/TEST-*.xml
    

    0 讨论(0)
  • 2020-12-15 06:45

    Jenkins looks for the path from the workspace root. Ensure that the given path is correct or use wildcards to look in multiple locations. Try using **/reports/TEST-*.xml Are you sure the reports folder is right under the workspace? Verify manually if the test result files are indeed present in the location given in the path.

    0 讨论(0)
提交回复
热议问题