Oh, there's something else, I missed an output line to copy (this time with debug- and release-tests in one run:
*12:24:17* INFO: Processing GoogleTest-1.8 *12:24:17* INFO: [GoogleTest-1.8] - 30 test report file(s) were found with the pattern 'test*\*.gxml' relative to 'D:\workdir\workspace\MyBuild-win32vc19' for the testing framework 'GoogleTest-1.8'. *12:24:18* INFO: Processing JUnit *12:24:18* INFO: [JUnit] - 67 test report file(s) were found with the pattern 'test*\*.xml' relative to 'D:\workdir\workspace\MyBuild-win32vc19' for the testing framework 'JUnit'. *12:24:18* ERROR: Validation error *12:24:18* ERROR: Validation error *12:24:20* INFO: Check 'Failed Tests' threshold. Is there something wrong with the threshold? It would be great to have a little more verbose message here.... [email protected] schrieb am Montag, 21. Februar 2022 um 13:54:56 UTC+1: > 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 > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea7b65b6-911a-425a-b44e-172006f40579n%40googlegroups.com.
