Is there a nunit-console-runner.dll for NUnit 3.0?

235 views
Skip to first unread message

abenj...@gmail.com

unread,
Apr 5, 2016, 2:08:34 PM4/5/16
to NUnit-Discuss

NUnit 2.6.4 had a nunit-console-runner.dll file that I could use in my C# app as follows:


string[] my_args = { "/run=SmokeTests.ATest", "Tests.dll" };
NUnit.ConsoleRunner.Runner.Main(my_args);


But I don't see this dll in 3.0. Is there one? If not, how can i use the same command to run NUnit tests programmatically?

Charlie Poole

unread,
Apr 5, 2016, 2:14:43 PM4/5/16
to NUnit-Discuss
That dll was provided with NUnit v2 to compensate for the lack of a
public API for running tests. Since NUnit 3+ does have such an API, we
didn't see the need for people to reuse our console runner. This helps
with maintainability, since internal features of the console runner
are not exposed.

To see how to use NUnit to run tests programmatically, you can start
with the info at
https://github.com/nunit/docs/wiki/Test-Engine-API-Spec Fair warning:
this is a spec and not true documentation. The code may have varied
from the spec as we built it. That said, I think it should be helpful.
We will be updating this page in the near future.
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.
> To post to this group, send email to nunit-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages