Uploading NUnit TestResults brings error 500

Matthias's Avatar


11 Jun, 2020 06:40 PM

Hi there,
I am trying to change my build into a matrix-based multi-job-stage environment.
By doing this I get an error 500 when posting test results (example attached), unclear to me why as it worked before.
Can't think of that the format has changed just between two days in a way that the server cant read it anymore? All other threads here leaded into this direction...

  1. 1 Posted by Matthias on 11 Jun, 2020 06:45 PM

    Matthias's Avatar

    What changed indeed in the meantime is that I corrected the "Should" format in my Pester tests to be all dashed as latest Pester version wants to have it, so I changed quite a lot of Should Be into Should -Be and so on...might that be an issue here?

  2. Support Staff 2 Posted by Feodor Fitsner on 11 Jun, 2020 08:25 PM

    Feodor Fitsner's Avatar

    Looking into that...

  3. Support Staff 3 Posted by Feodor Fitsner on 11 Jun, 2020 08:33 PM

    Feodor Fitsner's Avatar

    It crashes because parser expects result attribute in <test-case> elements, but this test (and others below it) doesn't have it:

    <test-case description="Passes Test-ModuleManifest" name="Connect-MS365 Integration Tests.Integrated Manifest Test.Passes Test-ModuleManifest" time="0" asserts="0" success="False" />

    We can fix that and deploy update to rely on success if result doesn't exist? Don't know if you can do something on your side...

  4. 4 Posted by Matthias on 14 Jun, 2020 09:37 AM

    Matthias's Avatar

    Hi Feodor,
    thanks for having a look. I think I can't really do something about it. I assume it has to do with the latest Pester update to v5 where they changed quite a lot of important stuff.
    This was just coming out of it as this.

  5. Support Staff 5 Posted by Feodor Fitsner on 16 Jun, 2020 03:42 AM

    Feodor Fitsner's Avatar

    Sure, we will update our NUnit parser and deploy an update later this week.

  6. Support Staff 6 Posted by Feodor Fitsner on 19 Jun, 2020 03:19 AM

    Feodor Fitsner's Avatar

    Hi Matthias,

    We've deployed a fix for NUnit XML test results parser.

    Could you please give it a try and let me know how it worked.

    Thanks for your patience!

  7. 7 Posted by Matthias on 19 Jun, 2020 11:41 AM

    Matthias's Avatar

    Hi Feodor,
    thanks a lot. Seems to work now again.

  8. 8 Posted by Matthias on 19 Jun, 2020 11:46 AM

    Matthias's Avatar

    Hi Feodor,

    sorry...was too early: unfortunately it is not.
    You can see the result at https://ci.appveyor.com/project/blindzero/connect-ms365/builds/3362...

    You can see that 5 test are as failed. Those were not executed as the Pester tag was not executed.
    Explained in detail:
    I have to "tags" in Pester: "Unit" and "Integration".
    In the step above only tag "Unit" is executed, maybe resulting in the empty XML-Results? Those are not executed and are not failed then.


  9. Support Staff 9 Posted by Feodor Fitsner on 20 Jun, 2020 02:42 AM

    Feodor Fitsner's Avatar

    So, what would be the status of those tests: skipped?

  10. 10 Posted by Matthias Flesch... on 20 Jun, 2020 07:04 AM

    Matthias Fleschütz's Avatar

    Hi Feodor
    Depends on what this status would define. Skipped would be ok, if the job is ok then and total is not including them.

    Am 20. Juni 2020 04:42:08 MESZ schrieb Feodor Fitsner <[email blocked]>:

Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • testResultsUnit.xml 12.3 KB

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