Description
Description
I'm building a customised console logger (https://www.nuget.org/packages/quackers.testlogger) with a few aims that the built-in console logger doesn't seem to support (easily, if at all)
- configurable pass/fail/skip markers
- fully-qualified test names **
- failure summary at the end of the test run including the thrown error & stack trace **
- this was actually the main reason I started down this road: scrolling back through thousands of tests to find the one failure
referenced in the original console output is untenable
- this was actually the main reason I started down this road: scrolling back through thousands of tests to find the one failure
- the ability to toggle coloration
- some "porcelain" markers to make it easier to consume the output stream with other tools
** These are to support easier diagnostics for the dev reading test output
I notice that even when I only include my own logger (-l quackers
) I still seem to get some of the vstest console output, namely:
So it looks like the console logger is included at minimal verbosity even when not explicitly requested - is there some way to disable it completely?
I also don't seem to get the test discovery events, but I have a feeling that's up to the test framework (in this case, nunit) to call - and it's not catastrophic - just odd.
It would also be really nice if there was an event raised as a test was started, (eg TestStarted
) - when there's a long-running test, it would be great to know what is holding up the test session (and one of the original intents of Quackers was to provide this information, but I can't without the starting event).
Steps to reproduce
- enable another logger
Expected behavior
I expect to see no console logging from the test framework
Actual behavior
I see some of the original console logging bleeding through
Environment
Environment: windows 11, x64
Testing with dotnet test
, dotnet version is 6.0.302