You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this pattern to run test for multiple iterations.
string[] arg = {@"someDll.dll", "--dispose-runners" }; for (int i = 0; i < 3; i++) ConsoleRunner.Program.Main(arg);
In second iteration, two nunit-agent.exe are running, and in third iteration, three agents are running.
I notice the dll is always added to InputFiles in CommandLineOptions so the created testPackage contains multiple subpackages.
Is this intented?
You aren't running nunit3-console but are calling it's main as a subroutine three times. So some strange behavior isn't that surprising! The effect is neither intended by us nor protected against.
In this case, the difference is because Main is a static method and the instance of ConsoleOptions it uses is stored in a static field.
@levimm commented on Mon Aug 22 2016
Hi Guys,
I'm using this pattern to run test for multiple iterations.
string[] arg = {@"someDll.dll", "--dispose-runners" };
for (int i = 0; i < 3; i++) ConsoleRunner.Program.Main(arg);
In second iteration, two nunit-agent.exe are running, and in third iteration, three agents are running.
I notice the dll is always added to InputFiles in CommandLineOptions so the created testPackage contains multiple subpackages.
Is this intented?
Cheers
@CharliePoole commented on Tue Aug 23 2016
@levimm Moving this to our new nunit-console repository. Don't feel bad, it is brand new. You're probably only the first to get caught this way.
The text was updated successfully, but these errors were encountered: