I am investigating a Heisenbug in a large suite of tests in a VS solution. I suspect it may depend on the order in which the tests are run. Obviously this is not an ideal situation.
But my question is, after a run, is there a way to see in what order the tests were executed?
If the situation is reproductible then you can run your tests from command line with appropriate logging level set on runner to see the actual order of your test executions.
For example dotnet test -v d YourProject.Tests.dll
will output status, testmethodname and timing (because of verbosity set to detailed via -v d
) for each test on separate lines in the executed order.