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.
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
Support Staff 1 Posted by Feodor Fitsner on 03 Sep, 2014 03:31 PM
Will take a look what's wrong.
-Feodor
2 Posted by ferventcoder on 03 Sep, 2014 04:01 PM
Much appreciated.
Support Staff 3 Posted by Feodor Fitsner on 03 Sep, 2014 05:56 PM
OK, found the problem.
Parser expects
test-suite
element withtype="Assembly"
attribute while pester's output hastype="Powershell"
. It's been fixed. Will deploy an update later today.Support Staff 4 Posted by Feodor Fitsner on 04 Sep, 2014 03:58 AM
AppVeyor update deployed. Uploading Test.xml should be working now.
5 Posted by ferventcoder on 04 Sep, 2014 12:43 PM
That looks beautiful, thanks so much!
https://ci.appveyor.com/project/ferventcoder/chocolatey/build/1.0.2...
ferventcoder closed this discussion on 04 Sep, 2014 12:43 PM.