Questions tagged [nunit-console]

nunit-console.exe is the command line version of NUnit, provided so that you can run your unit tests from the command line.

nunit-console.exe is the command line version of NUnit, provided so that you can run your unit tests from the command line. This is the ideal solution when you need to run your unit tests on a build server or run code coverage with NCover. There's both an x64 and x86 version for running unit tests compiled against 32-bit and 64-bit modes.

In NUnit3, the executable was renamed nunit3-console.exe

272 questions
7
votes
2 answers

NUnit/Mono not printing stack trace line number even with --debug

Ok, here's the thing, using Xamarin on OS X (the .cs file is a very simple test case that causes a backtrace) Compiling mcs /debug /lib:~(...)NUnit-2.6.3/bin/framework/:~(...)NUnit-2.6.3/bin/lib/ -r:nunit.framework.dll test.cs Running mono --debug…
thiagogalesi
  • 116
  • 6
7
votes
2 answers

Using category expressions in Nunit console runner

I was reading through this link on category expressions when using /include or /exclude statement. I want to be able to include only run test to be run out of two tests available or run all tests but using the /include:A+B or /exclude:A. However,…
Kala J
  • 2,040
  • 4
  • 45
  • 85
6
votes
2 answers

NUNIT3-CONSOLE exclude specific test category

The old NUnit 2 console runner had an /exclude parameter to exclude tests with a specific Category attribute. Does anybody know if the console runner of NUnit3 supports this feature? .\nunit3-console.exe --help doesn't state an exclude parameter. I…
Moerwald
  • 10,448
  • 9
  • 43
  • 83
6
votes
2 answers

Issue Running NUnit Tests On Jenkins

I have some small nunit tests written up for a Xamarin project. They run great on the terminal of my Mac Mini (jenkins build platform). When I run the same command on jenkins I'm getting a strange error that I cannot explain. I've tried provided…
user3459799
  • 345
  • 6
  • 16
6
votes
2 answers

NUnit-console 2.5.4 not capable of running multiple assemblies?

I am having problems running tests with the command line NUnit test runner. I am using version 2.5.4 with .NET 4 on an x64 machine. Using the following line results in a failure "Could not load file or assembly 'bar' or one of its dependencies. The…
Per Salmi
  • 1,398
  • 1
  • 14
  • 28
6
votes
2 answers

nunit-console "could not load file or assembly" using MySolution.sln

I'm to use nunit-console to run all of the tests in my solution. I did this: c:\some\path>nunit-console-x86.exe MySolution.sln NUnit-Console version 2.6.2.12296 Copyright (C) 2002-2012 Charlie Poole. Copyright (C) 2002-2004 James W. Newkirk,…
João Portela
  • 6,338
  • 7
  • 38
  • 51
5
votes
2 answers

Can nunit-console list all test names in a test fixture?

I'd like to report them before they're run, and have the option to run individual tests through shell scripts without managing categories. We have some unmanaged code which can leave the process in a bad state, and sometimes are happy to run each…
Sebastian Good
  • 6,310
  • 2
  • 33
  • 57
5
votes
2 answers

Running nunit-console on a solution file leads to System.IO.FileLoadException

When I try to use nunit-console.exe to run all the tests in a solution file as such: nunit-console.exe MyProject.sln I get the following exception (shown below). However when run the console runner on ANY of the projects in my folder structure, the…
Phil
  • 55
  • 1
  • 5
5
votes
0 answers

Run Nunit Console with net 5.0

Following situation: I have a third party tool which executes the nunit-console.exe to run unit tests. I've switched the tests to dot net 5.0 as this is a new requirement in our company. Now when I run the nunit-console.exe (Version: NUnit Console…
somecoolname
  • 337
  • 5
  • 16
5
votes
0 answers

Run dotnet test without full SDK installed

I would like to run some nUnit tests on a build server, without having to install the .NET Core SDK there. The tests target netcoreapp3.1. For .NET Framework it was possible to run them using the nunit-console-runner, but it doesn't seem to be…
Grzegorz Smulko
  • 2,525
  • 1
  • 29
  • 42
5
votes
1 answer

nunit-console shipped with Mono is deprecated, please use the Nunit Nuget package or some other form of acquiring NUnit

How to run NUnit test on console on MAC OSX (Mono 5.18.1) over ssh I have a test dll on MAC OS X which needs to run using nunit-console over ssh connection. However it gives error that Nunit-console shipped with Mono is deprecated. Also tried…
shivamsoni
  • 91
  • 6
5
votes
1 answer

updating nunit-console on command line

I am trying to upgrade my nunit-console version 2.4.8 to the latest or at least to version 3. The only help I found online was about Visual Studio and upgrading it there, but I am working on MAC and in my VS it has already the latest version. I…
rm -rf
  • 968
  • 1
  • 12
  • 28
5
votes
1 answer

Why am I getting "File type is not supported" on TeamCity 9 when using NUnit 3?

I'm using TeamCity Enterprise 9.1.5 (build 37377). I have created a Build Configuration. I have created an NUnit Build Step. For NUnit Runner I selected NUnit 3. For Path to NUnit Console Runner I entered:…
Jesus is Lord
  • 14,971
  • 11
  • 66
  • 97
5
votes
1 answer

Run parametrized test from console

I'd like to run test method with only one set of params from a testcase. I'm using NUnit Console 3.4.1. Example of code: [Category("SmokeTests")] [TestCase("1 param", "2 param", "3 param")] [TestCase("aaa", "bbb", "ccc")] public void…
Yuriy Rozhkov
  • 117
  • 1
  • 11
5
votes
1 answer

NUnit is not running my test cases

I have a test case that looks like: namespace UnitTests [] module ValidatorTests = [] let VerifyBasicFunctionality () = Assert.That(bool) Assert.That(bool) and when I try to run it in the Visual…
Gina
  • 570
  • 2
  • 5
  • 20
1
2
3
18 19