When custom script uploads test output, it only shows in artifacts and not on the tests like one would expect (Pester)

Based on http://www.appveyor.com/docs/running-tests :

Uploading XML test results

Testing frameworks can produce XML report with test results. Upload these XML files from your build script to Test results endpoint and they will be parsed and test results added to Tests tab of build console.

But when I upload my test results, you can see that it adds the xml to the artifacts, but there are no tests parsed.

https://ci.appveyor.com/project/ferventcoder/chocolatey/build/1.0.11
https://ci.appveyor.com/project/ferventcoder/chocolatey/build/1.0.1...
https://ci.appveyor.com/project/ferventcoder/chocolatey/build/1.0.1...

Pester outputs xml compliant with NUnit, so I selected the nunit parser for upload, but I have no visibility into why it is failing to parse the output.

Perhaps it could be something key is missing for the nunit output from pester to be correctly parsed, but this works in TeamCity NUnit parser, so it's expected that it would also work here.

  1. Will take a look what's wrong.

    -Feodor

  2. Much appreciated.

  3. OK, found the problem.

    Parser expects test-suite element with type="Assembly" attribute while pester's output has type="Powershell". It's been fixed. Will deploy an update later today.

  4. AppVeyor update deployed. Uploading Test.xml should be working now.

  5. ferventcoder closed this discussion on 04 Sep, 2014 12:43 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? 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

Recent Discussions