NUnit tests do not show up in the tests tab

Ramis's Avatar


16 Jan, 2019 07:57 AM

I have a .net core project which has multiple test projects.
Most of the test projects use XUnit and the tests for those appear in the tests tab.
A newly added project uses NUnit and the tests for those don't show up in the tests tab.

Here is a link to the build
Here is a link to the appveyor.yml file

Any help would be appreciated.

  1. Support Staff 1 Posted by Owen McDonnell on 16 Jan, 2019 06:34 PM

    Owen McDonnell's Avatar

    Can you try adding this package to the test project that uses nunit.

  2. 2 Posted by Ramis on 17 Jan, 2019 08:51 AM

    Ramis's Avatar

    Just tried it. The number of tests in the test tab is 36. Its missing the 2 tests from the Nunit project.
    Here is the PR .

  3. Support Staff 3 Posted by Owen McDonnell on 18 Jan, 2019 05:42 AM

    Owen McDonnell's Avatar

    So what happens when you run only these nunit tests in local Visual studio 2017?

  4. 4 Posted by Ramis on 18 Jan, 2019 11:08 PM

    Ramis's Avatar

    I'm developing on a Mac so I'm using rider. The tests run fine using rider.
    If I use the "dotnet test" command the tests also run.

    The tests are running in the appveyor build too, they just don't show up in the tests tab.

  5. Support Staff 5 Posted by Owen McDonnell on 19 Jan, 2019 07:39 AM

    Owen McDonnell's Avatar

    Add the package i mentioned before and after your dotnet test command add another dotnet test command like this

     - ps: dotnet test "C:\projects\snapper\Snapper.Json.Nunit.Tests\Snapper.Json.Nunit.Tests.csproj" --no-build --logger:Appveyor

    You could also, if you like, modify the previous command so that it only runs the other two test projects and doesn't needlessly run the nunit tests.

  6. 6 Posted by Ramis on 19 Jan, 2019 09:37 AM

    Ramis's Avatar

    Thanks that worked!!

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