7

I have a bunch of test result files (*.trx) after build is complete in directory TestResults.

Is it possible to display those test results in Jenkins? How? I tried MSTest Jenkins plugin but it allows only one trx file per job :(

*.trx files are generated after each build and named with the date they are created: YYYY_MM_DD.HH_mm_ss.TRX thus names are constantly changing (after each re-build).

Any ideas how to display those test results in Jenkins?

Joshua Wade
  • 4,755
  • 2
  • 24
  • 44
sero
  • 161
  • 2
  • 11
  • 1
    I have figured out ;) I just have to insert "server\TestResults\\*.trx" in field "Test report TRX file". – sero Sep 27 '13 at 11:26

2 Answers2

0

You can use Artifact Deployer Plugin of the Jenkins: ArtifactDeployer Plugin

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
dmitry.bogatko
  • 1,209
  • 1
  • 8
  • 4
0

Use the xUnit plugin in conjunction with the MSTest plugin. Sample usage -

xunit(
    [MSTest(deleteOutputFiles: true,
            failIfNotNew: true,
            pattern: '*.trx',
            skipNoTestFiles: false,
            stopProcessingIfError: true)
    ])

Note, this expects that your trx files are in the root of your workspace. If they aren't you'll need to copy them into there.

AngryDaz
  • 71
  • 5