Hi,
I have unit-test results in two different formats (junit as well as googletest) and used to collect these using the xunit-plugin. Now I found out accidentally that I parsed a junit file with the googletest format which delivered a console output like "error parsing blablabla" however the build went on and at the end the information was lost.
To handle that I set the parameter "stopProcessingIfError:true" and
simultaneously fixed the assignment.
In the next build I had no error any longer but the processsing still caused an error (however it did not fail the build which is another issue).
Here is my script:
xunit (
thresholds: [ failed( unstableThreshold: '0' ) ],
tools: [ GoogleTest( pattern: "test\\*.gxml", failIfNotNew: true, stopProcessingIfError:true )
, JUnit( pattern: "test\\*.xml", failIfNotNew: true, stopProcessingIfError:true )] )
And this is the output when it fails without any notice what the error might be:
02:29:58 INFO: Processing GoogleTest-1.8
02:29:58 INFO: [GoogleTest-1.8] - 15 test report file(s) were found with the pattern 'test\*.gxml' relative to 'D:\workdir\workspace\MyBuild' for the testing framework 'GoogleTest-1.8'.
02:30:01 INFO: Processing JUnit
02:30:01 INFO: [JUnit] - 33 test report file(s) were found with the pattern 'test\*.xml' relative to 'D:\workdir\workspace\MyBuild' for the testing framework 'JUnit'.
02:30:02 ERROR: Validation error
Did I maybe missunderstand the parameter? Any idea how I can get more information about the actual error? Maybe a bug of the plugin?
May thanks for any kind of help!
Christoph