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
0
votes
1 answer

NunitConsoleRunner test using mono on windows

I have installed mono and added mono/bin directory to PATH. The way I am running tests: mono nunit3-console.exe C:\Test\bin\Debug\Test.dll output: I tried with --framework=mono and mono-4.0 but it does not work. The assembly is compiled by…
smokeing
  • 259
  • 1
  • 3
  • 13
0
votes
1 answer

How to run tests under a specific folder with NUnit 3?

I have a lot of tests (classes) and they are placed to different folders. It looks like this: I want to run all the tests under a specific folder including all sub-folders. Please help me to do it using NUnit 3 console commands. Here is a manual…
Denis Koreyba
  • 3,144
  • 1
  • 31
  • 49
0
votes
1 answer

Running Nunit tests in c# and capture the execution logs

I am trying to execute Nunit test cases writen in c# using a console program. So far i tried different ways to do it but not able to find a perfect way of approach to achieve the same. Approach 1: Using NUnitTestAdapter package. This package is…
user3625533
  • 339
  • 1
  • 4
  • 20
0
votes
1 answer

Specflow Tests with Nunit 3 Console Runner

I have recently started a new project and decided to use Specflow 2.1 It ships with NUnit3. Currently the project is setup and the test runner in Visual studio is executing correctly however when I try and run the same tests from the Nunit 3 console…
Ettienne
  • 365
  • 3
  • 9
0
votes
1 answer

nunit-console hangs when tests are run using typemock

I have a msbuild project like below, through which I am running unit tests under typemock isolation. 0
utkarsh
  • 588
  • 1
  • 7
  • 18
0
votes
0 answers

NUnit console - when attempting to redirect output /err seems to have no effect

I've got an Nunit project with some tests and they all run as expected. Now I want to incorporate the running of these scripts automatically. I'm trying to use some of the redirect options so I can separate the test output, but whatever combination…
Shane
  • 3
  • 1
  • 3
0
votes
1 answer

How to run unit tests in nunit latest version(3.0.5813) in console

I have tried following command in command prompt. C:\ProgramFiles()x86\nunit.org\nunit-console>"nunit3-console.exe" "E:\UnitTesting\TestsProject\obj\Release\Tests.dll" I am getting the following error in console. What is wrong here?
Shesha
  • 1,857
  • 6
  • 21
  • 28
0
votes
1 answer

Error while running Nunit 3.0.1 in Bamboo CI

I am running NUnit 3.0.1 as a build task in Bamboo CI after the MSbuild task. I am getting the following error Invalid argument: -xml=TestResult.xml Running a bat file as specified in How to run NUnit Runner in Atlassian Bamboo with NUnit 3 also…
Ajay Bhasy
  • 1,920
  • 1
  • 26
  • 38
0
votes
2 answers

Nunit has a path length limitation?

Running Nunit console inside a MSBuild project a command is built in order to execute the tests, that command includes about 90 paths, each one is the full path of a compiled test project (.test.dll) and contains at least 100 characters but no more…
XtianGIS
  • 967
  • 16
  • 39
0
votes
1 answer

Rerun failed tests using NUnit commandline

Is there a way to rerun the failed test of a test suite using NUnit from commandline. I know NUnit GUI support this. Is there something similar exists for commandline?
Saifur
  • 16,081
  • 6
  • 49
  • 73
0
votes
1 answer

Autofac couldn't resolve dependency on TeamCity

I have a such code (It's a part of unit tests executed by nunit-console): class MyClass { [DI(Type = typeof(MyClass))] public IMyClass MyClassProperty {get;set;} } By reflection i'm scanning such classes and then register in Autofac: //…
dr11
  • 5,166
  • 11
  • 35
  • 77
0
votes
1 answer

Running selenium test with nunit-console and mono

When I try to run my test on my Ubuntu server with nunit-console, I get an error because he don't find the file. System.IO.DirectoryNotFoundException: Could not find a part of the path…
biokstor
  • 55
  • 6
0
votes
1 answer

Is there any particular structure needed to run nunit-console with a list of tests in a textfile?

I successfully ran all the tests with: nunit-console bin\Debug\SeleniumAutomated.dll However, when I run: nunit-console /runlist:textFile.txt bin\Debug\SeleniumAutomated.dll This results in 0 tests being ran. So, I am wondering if the text file…
Erick Stone
  • 809
  • 1
  • 8
  • 16
0
votes
0 answers

nunit-console /runlist does not run certain test's in a list containing parameterized test cases

When running from Powershell with the following command & "c:\Program Files (x86)\Nunit 2.6.4\bin\nunit-console.exe" /runlist=C:.....\ReRunTests.txt "C:.....\bin\debug\Web.Test.UI.dll" and the following run…
0
votes
0 answers

NUnit- How to ensure a version of software is installed in a system?

I have written a C# code to find that particular version is installed in a machine or not. When i test this codeby debugging, it works as i expected. But, when i pass the arguments and run the asserts through N-unit, am getting the wrong output. I…
Karthi
  • 575
  • 2
  • 10
  • 29