[v3.17.0.2]
According to issue
https://github.com/nunit/nunit/issues/1062 for nunit-console runner, there should be some means to log output in an OneTimeSetup method:
CharliePoole wrote:
To summarize, NUnit supports two kinds of output: standard and immediate.
Standard output is produced using Console.Write and TextContext.Write. The text is attached to the test result.
Immediate output is produced by Console.Error, TestContext.Error and TestContext.Progress. It is displayed immediately when received.
Standard output comes to the console runner at the end of the test. It is displayed for test cases but not currently for suites. The OneTimeSetUp is associated with the suite (fixture). Normally, the console only displays info from the fixture if the OneTimeSetUp fails.
I cannot get it to work with NCrunch though (i.e. by using Console.Error or TestContext.Progress), is there a way I can log output from an OneTimeSetup method (which I ensure via static var it is one time only) with NCrunch?
Thanks.
*Edit: It see the output from Fixture constructors, including static ones.