How to get output from dotnet test

Running dotnet test will not show you any output, not from your test code and not from the adapter/engine.

It runs by default in quiet mode.

To get some output from the adapter, run it in normal mode, by setting the verbose option to normal

-v n

You still wont get anything out from your test code though.  There are however different ways to go about it.

A good trick is to add a console logger:

dotnet test --logger "console;verbosity=normal"

Note:  You can configure the adapter through runsettings for different kind of outputs, using the ConsoleOut and the UseTestNameInConsoleOutput properties.  See [NUnit runsettings](https://docs.nunit.org/articles/vs-test-adapter/Tips-And-Tricks.html#consoleout) for details.

See https://github.com/Microsoft/vstest/issues/799 for some discussion about it.