[Mono-dev] NUnit versions that come with mono

Charlie Poole charlie at nunit.com
Thu Jan 29 21:09:44 UTC 2015


Ideally, install the runner components of NUnit once, in a convenient
location, by downloading the binaries from NUnit.org. That's how we
designed the runners to be used. Each runner version rv can handle
tests for any framework version fv, such that 2.0 <= fv <= rv.

NuGet works really well for components that need to be referenced by
the tests, like nunit.framework. It's less useful for tools like the
console runner. I bent to pressure from a vocal minority of users when
I created the NUnit.Runners package. These folks like it for build
machines that don't have nunit installed, although the binary zip file
would work equally well in such a situation, IMO. I definitely
wouldn't use if for a developer desktop.

On Thu, Jan 29, 2015 at 12:27 PM, xplicit <svg at ngs.ru> wrote:
> Use nuget to install NUnit of the version you needed, and you won't be
> dependent on the OS you're working with.
>
> #this installs nunit-console 2.6.4
> nuget install NUnit.Runners
>
> #this installs nunit-console 2.6.3
> nuget install NUnit.Runners -version 2.6.3
>
> To run:
> chmod a+x NUnit.Runners.2.6.4/tools/nunit-console.exe
> nunit-console.exe <your_dlls>
>
> or write sh file similar to /usr/bin/nunit-console
>
> if you need NUnit not only to run the test, but also to reference it in the
> projects, then add nuget package NUnit to the test project and before build
> run
>
> nuget restore <your_solution.sln>
>
> If you're working with monodevelop, it can to restore nuget packages from
> GUI, without command-line interacting.
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/NUnit-versions-that-come-with-mono-tp4665376p4665384.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list


More information about the Mono-devel-list mailing list