I have a parameterised build that allows me to skip the Unit Tests as required, but the build fails when this is used because:
With the checkboxes:
"Skip if there are no test files" checked
"Fail the build if the results were not updated this run" unchecked
I would expect the absence of the test files not to fail the build.
Total time: 16 minutes 34 seconds
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing PHPUnit-3.x (default)
[xUnit] [INFO] - [PHPUnit-3.x (default)] - No test report file(s) were found with the pattern 'build\*\report\*.xml' relative to 'C:\jenkins-node-workspace\workspace\Reports-Package' for the testing framework 'PHPUnit-3.x (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'PHPUnit-3.x (default)'?
[xUnit] [WARNING] - No test reports found for the metric 'PHPUnit' with the resolved pattern 'build\*\report\*.xmlIgnore.
[xUnit] [INFO] - Setting the build status to FAILURE
[xUnit] [INFO] - Stopping recording.
Build step 'Publish xUnit test result report' changed build result to FAILURE
Sending e-mails to: xxx