Wrong test results for uploaded mstest .trx file

danielgonnet's Avatar


09 May, 2018 06:57 AM


I am building and testing an open source project that uses a dotnet test... --loger:trx script to run its unit tests.

I am uploading the resulting .trx file using: $wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", ($results)) where $results points to the .trx file.

I can see it succeeds, but I also can see the test report is not correct as the results indicate there are 78 tests and the report only lists 53.
The build that exhibits this behavior can be found at:
and the test result at: https://ci.appveyor.com/api/buildjobs/jpp5rka3dn40uwl3/artifacts/te...

I would very much like the report to be reflective of the actual results. Could it be some sort of bug that prevents the correct results from showing up?

Thanks in advance

  1. Support Staff 1 Posted by Ilya Finkelshte... on 09 May, 2018 06:24 PM

    Ilya Finkelshteyn's Avatar

    Problem is that tests has duplicated names (for example Create_NotAProperty_NoOp). I am not saying we should not improve it, but for now workaround is to make test names unique.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac