Tests not picked up by AppVeyor

Giorgi's Avatar


28 Apr, 2021 09:24 AM

I have two similar projects and AppVeyor picks up tests in the first project but not in the second one.

The first project is: https://ci.appveyor.com/project/Giorgi/entityframework-exceptions

The second project is: https://ci.appveyor.com/project/Giorgi/graphqlinq

The differences are that the first project uses XUnit and the build script is written in AppVeyor.yml and the second project uses NUnit and uses Nuke Build as a build tool.

The test script for the first project is:

dotnet test --logger trx "EntityFramework.Exceptions.Tests\Tests.csproj" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover /p:Exclude="[*]EntityFramework.Exceptions.Common.*Exception"

And for the second one it is:

"C:\Program Files\dotnet\dotnet.exe" test C:\projects\graphqlinq\src\GraphQLinq.Tests\Tests.csproj --logger trx --no-restore --results-directory C:\projects\graphqlinq\src\TestResults /property:CollectCoverage=True /property:CoverletOutputFormat=opencover /property:CoverletOutput=../TestResults/

Why are the tests picked up in the first project but not in the second one?

What should I do so that tests are picked up in the second project too?

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