✅ dotnet test doesn't show correct total number of unit tests at the end
I have a solution with many projects. When I run dotnet test, it selects all my xUnit projects and correctly executes all of them. I have 440 unit tests in total, but at the end, dotnet test outputs a number that is sometimes 428 sometimes 380 sometimes 440 (the correct number) etc ... I think it sometimes fails to aggregate all the test results. I find it hard to make a MRE to share because I tried on two computers, and I can only see the bug on one of them. On the other one, no matter how many times I run the command dotnet test, I get 440 which is the correct number. For the record, I use
--logger html
--logger html
but I don't think that has anything to do with the problem. What should I investigate? How can I get to the bottom of this? I already tried upgrading all my xUnit nugget packages.