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
2
votes
3 answers

TeamCity XML Report Processing not showing results

I created a build feature using XML Report Processing, NUnit is specified as the Report Type. My tests are running(although they fail) using NUnit Console Runner, The xml file is generated on the build agent, is found by TC and I can see in the…
Syed Waqas
  • 2,576
  • 4
  • 29
  • 36
2
votes
2 answers

How can I suppress NUnit console output?

Is there a way to suppress NUnit errors and failures displayed on console output? I tried using the command line options: /xml, /out, /err. But still I get the output in the console.
quldude
  • 507
  • 5
  • 16
2
votes
1 answer

Can i Override the number of instances the tests are running in parallel using NUnit3 Console

I have a few tests written in c#.net using NUnit3. I have added the number of instances the test cases should run in parallel in assemblyinfo.cs file by [assembly: LevelOfParallelism(4)]. Now every time I run tests, it will run 4 tests in parallel.…
2
votes
1 answer

NUnit 3 and NET 4.5.1

I've tried to migrate my project from NUnit 2.6.4 to 3.0.0 and faced an issue with .NET framework version selection. Like in 2.6.4, I use --framework=net-4.5.1 and get the error message: The requested framework net-4.5.1 is unknown or not…
starteleport
  • 1,231
  • 2
  • 11
  • 21
2
votes
1 answer

Help me avoid this NullReferenceException (using Rhino Mocks)

I'm currently trying to get one of my unit tests to work, but there is one thing in the way. I have a class called AccountingScheduleLookup that has an ID field attached to it that's read-only. When I try to mock a call to a method that uses this ID…
Corey Adler
  • 15,897
  • 18
  • 66
  • 80
2
votes
2 answers

Running nunit-console.exe fails while GUI is also running

I'm trying to run nunit-console.exe from a script and I get an 'Unable to locate fixture' error, but only when I have NUnit GUI also running. Once I close the NUnit GUI the script runs the tests just fine. Here is nunit command being executed by…
Dan
  • 802
  • 1
  • 9
  • 19
2
votes
1 answer

NUnit not seeing configSource defined connection strings when run from command line

I have a problem with running automated tests on my Jenkins build server since I moved the connection strings from my config files to searate files using When I open the project from the…
K.L.
  • 2,419
  • 1
  • 21
  • 26
2
votes
1 answer

Adding console output to NUnit test results

I have been trying to figure out a way to add some string output to NUnit test results. I did some research and came across this, but this is not what I want. I want to write the output to the result xml generated by NUnit, but I cannot find a way…
Saifur
  • 16,081
  • 6
  • 49
  • 73
2
votes
0 answers

New SIGABRT after upgrading to Mono 4 running NUnit tests

We upgraded from Mono 3.12.0 to 4.0.1 the other day and now our NUnit tests crash with a SIGABRT and some other information. So far Google has been of no help and I'm running out of things to try (minus a rollback to 3.12.0). I was just hoping…
DTI-Matt
  • 2,065
  • 9
  • 35
  • 60
2
votes
1 answer

Output from external exe and my custom objects in powershell

(Sorry for strange title, haven't come up with anything better..) Background I use nunit-console to test my assemblies. It is called like this (simplified): function Test-ByNunit { param($assembly, $tempFile = 'c:\temp\nunit.xml') &…
stej
  • 28,745
  • 11
  • 71
  • 104
2
votes
1 answer

Generate report and sort by date

I am currently looking into the framework Allure for Nunit/SpecFlow Is it possible to generate a report for two test runs and then display their timeline - organised by execution date/time? I have currently run the test three times and create a new…
user1228891
  • 636
  • 8
  • 17
2
votes
4 answers

Can NUnit Console Runner report failed tests on the fly?

nunit-console seems to work like this (params: /nologo /wait /labels ...) It outputs only the label for each test when a test is started, like so: ***** Our.Tests.Bla ... here come some Console.WriteLine // Note that in case Our.Tests.Bla fails,…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
2
votes
1 answer

Nunit result xml is not updated during Jenkins build

I have configured NUnit tests to run after build completed.(Jenkins) I added following on Excecute windows batch command window in Jenkins. rmdir ClickOnceInstall /Q /S mkdir ClickOnceInstall CD BuildScripts Start.bat "C:\Program Files (x86)\NUnit…
2
votes
1 answer

nunit-console hangs in remote powershell session after finishing test run

I'm running NUnit tests using the following PS line: & 'D:\tools\nunit-console.exe' D:\MyApplication.Specs.dll /run=MyApplication.MyTest /framework=net-4.5 /nothread This line is working fine. After that I'm running the same test in remote session…
2
votes
1 answer

Ignoring NUnit test from the console using a wildcard

Are there a way that one can ignore unit tests when running NUnit from the command line based on a wildcard? Say for example I don't want to run any tests that end with IntegrationTest? In that case I would like to say ignore all tests containing…
André Vermeulen
  • 1,774
  • 4
  • 17
  • 26