xunit jenkins plugin not seeing skipped mstests -
i set mstest skipped ignore attribute:
[ignore] public void skipthistest() {
now when @ trx see this:
<resultsummary outcome="failed"> <counters total="6" executed="5" passed="2" failed="3" error="0" timeout="0" aborted="0" inconclusive="0" passedbutrunaborted="0" notrunnable="0" notexecuted="0" disconnected="0" warning="0" completed="0" inprogress="0" pending="0" /> <output> <stdout>test 'skipthistest' skipped in test run.</stdout> </output> </resultsummary>
here see in junit report after xunit publishes it:
<case> <duration>nan</duration> <classname></classname> <testname>skipthistest</testname> <skipped>false</skipped> <failedsince>0</failedsince> </case> <case> <duration>0.0040063</duration> <classname></classname> <testname>selectshipperjobtest</testname> <skipped>false</skipped> <failedsince>0</failedsince> </case>
so seems xunit isn't pulling out of trx file. although in trx see "notexecuted" isn't populated. not sure breaking down or xunit expects see.
im running xunit in pipeline:
step([ $class : 'xunitpublisher', testtimemargin: '3000', thresholdmode: 1, thresholds: [ // todo: skipped? [$class: 'failedthreshold', failurenewthreshold: '', failurethreshold: '', unstablenewthreshold: '', unstablethreshold: '0'], [$class: 'skippedthreshold', failurenewthreshold: '', failurethreshold: '', unstablenewthreshold: '', unstablethreshold: ''] ], tools : [[ $class: 'mstestjunithudsontesttype', deleteoutputfiles: true, failifnotnew: false, pattern: "\\testresults\\*.trx", skipnotestfiles: false, stopprocessingiferror: true ]] ])
wiki
Comments
Post a Comment