2

I've got a test that occasionally flakes and crashes my test process. However, I can't figure out which test is causing the failure. The only output I get is

Console output

How can I get test results to log as they happen so I can find the failing test?

farlee2121
  • 2,959
  • 4
  • 29
  • 41

1 Answers1

3

Turns out this is more a dotnet cli question, since I'm running tests via dotnet test and the YoloDev.Expecto.TestSdk adapter.

The answer is to add a simple logger argument

dotnet test -l "console;verbosity=detailed"
farlee2121
  • 2,959
  • 4
  • 29
  • 41
  • 1
    Also may be useful to use dedicated helpers for finding failing test with `blame*` family of arguments https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test#arguments – JL0PD Jun 21 '22 at 09:14