NullReferenceException thrown by test logger during build

martin.costello1's Avatar


02 Sep, 2018 02:35 PM

A NullReferenceException is occurring in a build of a project of mine when AppVeyor tries to upload the xunit test results:

This was causing the builds to fail until I changed the Powershell settings for my build script to ignore it.

AppVeyor should be correctly uploading the test results and not throwing an exception.

  1. 1 Posted by martin.costello... on 13 Sep, 2018 04:31 PM

    martin.costello1's Avatar

    This is also happening with a different project:

  2. Support Staff 2 Posted by Owen McDonnell on 13 Sep, 2018 08:38 PM

    Owen McDonnell's Avatar

    Sorry for the delay in responding. We have been trying to determine the cause of this error but haven't finished investigating. We haven't forgot.
    The additional project should be helpful in the investigation, thanks for that.

  3. Support Staff 3 Posted by Owen McDonnell on 20 Sep, 2018 05:04 PM

    Owen McDonnell's Avatar

    Can you try adding "parallelizeTestCollections": false to your xunit.runner.json file.

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