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
1
vote
0 answers

NUnit Adapter 3.0.10.0: Test execution and Visual Studio Test Execution

I am using NUnit Adapter 3.0.10.0 to execute my tests. Before I was implementing N Unit Adapter to convert the tests I was using Visual Studio 2015 to run the tests. When I did this and my test failed I could see the output as to why my test would…
Andy Williams
  • 879
  • 1
  • 14
  • 33
1
vote
1 answer

Run NUnit3 tests in parallel from multiple assemblies from console runner

I want to be able to run parameterized tests from multiple assemblies in parallel using the NUnit 3 console runner. The key is that I want to be able to run the static initializers in parallel (the slow part of the tests). I am able to get this to…
rsideb
  • 839
  • 10
  • 18
1
vote
1 answer

NUnit 3.2.0 Console Runner System.NullReferenceException when running with /domain=multiple

When running with /domain=multiple in NUnit Console Runner a NullReference exception occurs. Running without /domain=multiple or with /domain=single works. Running using ReSharper 10.0.2 test runner with "Use Seperate AppDomain" setting checked…
rsideb
  • 839
  • 10
  • 18
1
vote
3 answers

Running all NUnit tests in all assemblys from Cygwin command line

I'm trying to create a short bash script someone could run in cygwin to execute all nunit tests in a .NET project using nunit-console. Currently i have the system version of nunit aliased to "nunit" so if i run "nunit" it will execute nunit-console.…
JoshReedSchramm
  • 2,751
  • 1
  • 27
  • 45
1
vote
1 answer

NUnit 3 console runner can't assert that collection is ordered

I am running a CI build using Travis CI. I am running NUnit tests via the nunit3-console.exe. I have several tests that attempt to assert that a collection is ordered: [Test] public void FeatsAreSorted() { var result = controller.Generate() as…
cidthecoatrack
  • 1,441
  • 2
  • 18
  • 32
1
vote
1 answer

How to run code-coverage from the command line with NUnit 2.6

I use Visual Studio 2015 with NUnit 2.6, and I'm able to run my unit tests from the UI and see the code coverage in Visual Studio. -- My solution has about 10 projects in it. I'd like to be able to script this process and invoke it from the command…
BrainSlugs83
  • 6,214
  • 7
  • 50
  • 56
1
vote
0 answers

Specflow report differences between nunit and mstest

I'm going through an exercise to build some integration tests using specflow, and view some test results after the execution of these tests. I'm seeing some differences in the quality of the report generated by the specflow executable between test…
J Robson
  • 149
  • 2
  • 12
1
vote
1 answer

NUNIT Fails individual dlls but works fine with .nunit file

Can't figure out why my nunit tests fail when i call the .dll files individually however when i call the below .nunit file through nunit-console-x86.exe I suspect it has something to do with the config file. Some of these test require configuration…
Beta033
  • 1,975
  • 9
  • 35
  • 48
1
vote
0 answers

How can I write the trace, console and error outputs into my XML report file?

I want the Trace, Console and Console Error outputs would be written into the common XML report file (for example into cad.UnitTests.xml). By default this info is not written in XML. How can I do it? nunit-console.exe has such…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
1
vote
1 answer

Is there a way to see if a selenium test is being ran via nunit or nunit-console?

So, I have a reasonable amount of Selenium Tests. I want them to run quietly in the background via a batch script, nunit-console, and RemoteWebDriver. I have this setup already. I want to also be able to run the same tests (with me watching,…
Erick Stone
  • 809
  • 1
  • 8
  • 16
1
vote
1 answer

Formed an incorrect Allure report if run tests from the command line of TeamCity

I was faced with the following problem: I run the tests through NUnit console, using the command line of TeamCity. At the output I get the wrong Allure report: wrong status and no screenshots for errors. If run by hands through cmd, then the reports…
BCR
  • 71
  • 4
1
vote
3 answers

NUnit: Can I get HTML report instead of XML?

NUnit 3.0. I use such code in my application for test running: string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string[] nunitArgs = new List { // for details of options see …
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
1
vote
1 answer

Running NUnit-Console on a Mac

Apologies for the nubbery, but I'm having a real pain getting NUnit to run on my Mac. The overall goal is to have Jenkins on our Mac build server build our Xamarin project and run the relevant tests to the .sln file. I've got NUnit-Console…
AJ McK
  • 215
  • 3
  • 11
1
vote
0 answers

Passing parameters to nunit console tool

I would like to know if its possible to send parameters via nunit console app and then use the parameters to do the testing. This is the test method I have: namespace MyUnitTest.Tests { public class QuestsTests { [TestFixture] …
Laziale
  • 7,965
  • 46
  • 146
  • 262
1
vote
2 answers

System.IO.FileNotFoundException thrown by NUnit Test Runner

I was able to build with NAnt and run the assembly through NAnt. Now I tried to run my selenium test suit from NUnit command line. I am not even sure if this can be accomplished through NUnit command line. Can anyone please help me to resolve the…
Saifur
  • 16,081
  • 6
  • 49
  • 73