Jenkins with the MSTest plugin: "mstest xml report report file not found"

In my build process, VsTest.console checks my dll and generates a TestResults\a.trx . The only parameter I added (more than the path to the dll) is the .runsettings file.

The .trx file is not empty, inside xml it is clearly indicated what was done. Double-clicking on the trx file opens vs2013, and the results + coverage are displayed as it should.

Then I want to publish the coverage results using the jenkins MSTest plugin , but it fails because it is looking for a file that does not exist. Here is the output log:

 MSTest: Processing tests results in file(s) TestResults\a.trx MSTest: C:\Program Files (x86)\Jenkins\workspace\tepp\TestResults\a.trx mstest xml coverage report file not found: C:\Program Files (x86)\Jenkins\workspace\tepp\TestResults\mstest-coverage.xml 

Is it better to use the MSTest-runner plugin?

If not, what did I miss during the build process?

+5
source share
1 answer

The problem is that converting MSTest code covarage results to XML

Have you tried something like TRX2HTML or TRXER? (Convert them to htm so you can view using the artifact publishing plugin)

TRXER

TRX2HTML

I also found this

Can you tell me your build steps?

0
source

Source: https://habr.com/ru/post/1215823/


All Articles