.NET Core 1.1, xUnit integration with Jenkins Test Result -


i have jenkins job runs unit test step on .net core project (.net core 1.1) using following dotnet cli command: dotnet test -l trx. unit testing framework used xunit.

the problem output trx file format not compatible jenkins test results viewer tests table has @ package level 1 row called "(root)" beneath it, @ "class" level there 1 row has no name making impossible navigation actual test methods beneath it.

i using xunitpublisher mstestjunithudsontesttype publishing test results:

step([$class: 'xunitpublisher', testtimemargin: '3000', thresholdmode: 1, thresholds: [[$class: 'failedthreshold', failurenewthreshold: '', failurethreshold: '', unstablenewthreshold: '', unstablethreshold: ''], [$class: 'skippedthreshold', failurenewthreshold: '', failurethreshold: '', unstablenewthreshold: '', unstablethreshold: '']], tools: [[$class: 'mstestjunithudsontesttype', deleteoutputfiles: true, failifnotnew: true, pattern: /testresults/*.trx', skipnotestfiles: false, stopprocessingiferror: true]]])

is there solution correctly integrate trx output result jenkins test result view?

we use jenkins , dotnet test trx in https://github.com/dotnet/cli.

we make this call

utilities.addmstestresults(newjob, '**/*.trx') 

that addmstestresults implemented here.

you should able emulate do.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -