mardi 29 septembre 2020

Diffrent number of tests on each run of dotnet test on TC

I have a weird behavior when testing my .NET Core projects on TeamCity. When running test by simply using built in 'dotnet test' functionality I have different number of tests each time I'm running the build. It is hard to see what test is missing because report from TeamCity in form of CSV has different formatting each time (for instance sometimes it has name of the dll in front and for same test in other run there is only test name). Any ideas?

Tools versions:

  • TeamCity 2020.1
  • .NET Core 3.1.200
  • MSBuild 16.5

All tests have

  • Microsoft.NET.Test.SDK 16.7.1
  • xunit 2.4.1
  • xunit.runner 2.4.3
  • nunit 3.12
  • nunit.testAdapter 3.15.1

Aucun commentaire:

Enregistrer un commentaire