Tracing in NUnit only works when debugging from Visual Studio

I want to display trace information on the Text Output tab in the NUnit GUI (version 2.5.7, target runtime 4.0):

Trace.Listeners.Add(new ConsoleTraceListener());
Trace.WriteLine("Hello NUnit");

This works fine when I launch the NUnit GUI from Visual Studio (2010) via Debug -> Launch External Application.

But when from the project file .nunit and the console runner - no. Why??

+3
source share
1 answer

I did not find a solution, but a reason.

I have MyProject.Test.dll(contains the tests themselves) and MyProject.dll(the purpose of the tests).

Trace.WriteLine() MyProject.dll, NUnit, .

Trace.WriteLine() MyProject.Test.dll - . , , .

.

0

Source: https://habr.com/ru/post/1762292/


All Articles