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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -