Search code examples
.netbuildf#expecto

Expecto: log individual test statuses


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?


Solution

  • 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"