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

I am not able to see AssemblyInfo.cs file in visual studio 2k17

I am following a tutorial where he is teaching Selenium with C# Nunit framework, when he creates a new project, a Properties file is generated along with its AssemblyInfo.cs automatically which is not true in my case, could someone please help…
Md K
  • 1
0
votes
1 answer

Continue running NUnit after failures

I am running nunit-console from a CI configured in TeamCity to run tests from various assemblies. Once one of the TestFixtures has a failing test, then the test execution will stop. Currently i am able to see the first tests that failed, but am…
ravyoli
  • 698
  • 6
  • 13
0
votes
1 answer

How to get path of NUnit's TestResult.xml file programmatically or set it in the code?

I'm using nunit3-console runner for my Selenium tests project. After tests were run I find TestResult.xml file in folder from where I've started nunit3-console runner. Also the destination path of this file can be specified in command line using…
Sančiezz
  • 81
  • 2
  • 11
0
votes
1 answer

NUnit-2 | Get TestResult.xml report in runtime

I have a single Test.dll which have thousands of test case inside it. I am using the NUnit 2.x framework. When running NUnit test by NUnit-console, I must wait several hours and just get the test report after it finished the whole test suit. May I…
Khoa DANG TOAN
  • 263
  • 3
  • 9
0
votes
0 answers

Some tests fail when running via nunit-console

I have a test project written on C# with thousands of tests. Now I'm updating NUnit related stuff to the latest versions. After I did that, a couple tests (5 out of 2500) started failing. An interesting thing is that when I run them from Visual…
0
votes
2 answers

nUnit isnt executing OneTimeSetup first but executing OneTimeTearDown

I recently made the switch from MSTest to nUnit to run my selenium test. With MSTest i was running my test as assembly initialized. I read that i could do something similar and removed and added all the necessary elements to run my test using…
skinnyWill
  • 327
  • 2
  • 18
0
votes
1 answer

dotcover print coverage results to cmd line

Is there a way to get dotcover to print a summary of the coverage results to the command line? I am trying to get my gitlab pipeline to output coverage results to the console so they can be picked up by a regex I specified in the pipeline settings.…
spots
  • 2,483
  • 5
  • 23
  • 38
0
votes
0 answers

What is the simplest way to run nunit 3 tests from a button in a Windows Form?

I currently have an nunit project outputting a class library 'RegressionTests.dll' that opens the Selenium WebDriver and runs a few dozen UI tests. I have created a WinForm app with a button 'Run Tests'. When clicking this button, I want to…
0
votes
0 answers

Nunit-Console: Is there any way to use Test Selection Language with Command Line options

I am trying to run Specific test cases using nunit console runner with the following command nunit-console.exe \run:Namespace TestDll.dll --where "method=Methodname1 || Methodname2" But this doesnt work.Im using Nunit 2.6.x . Please help
Suruhj
  • 3
  • 3
0
votes
0 answers

How to detach debugger in NUnit Core's ProcessModel

Before the .NET Core migration of our projects, we were using this to attach a debugger to the process so that we can debug our code: package.AddSetting(EnginePackageSettings.ProcessModel, ProcessModel.InProcess.ToString()); Now with the latest…
magicode118
  • 1,444
  • 2
  • 17
  • 26
0
votes
0 answers

Don't test certain assemblies in parallel

I am runing some unit tests on multiple assemblies using nunit3-console, like this: nunit3-console.exe A.dll B.dll C.dll D.dll The console runner is testing all these assemblies in parallel by default. I would like to run A.dll and B.dll in…
Ove
  • 6,227
  • 2
  • 39
  • 68
0
votes
1 answer

How to run a sub-set of TestCases using --where for nunit

For my project I want to run the exact same test cases twice, once locally and on a different VM in parallel in the cloud (Azure in my case). I duplicated the TestCase and tagged one Category("Local") and the other Category("Cloud"). Running nunit3…
0
votes
1 answer

How can I specify arguments to NUnit-console.exe in dotcover command line

I am working with nunit and dotCover for code coverage, if we run nunit-console.exe we need to provide arguments like : & $nunit /nothread /noshadow /labels /domain=None /trace=Info /framework=net-4.0 /process=Separate where $nunit is path to…
NetSurfer
  • 103
  • 1
  • 9
0
votes
1 answer

NUnit access denied error in dotcover.exe

I am writing PowerShell script for dotCover to generate coverage report using NUnit-console.exe After I run the script - $testRunner="C:\Program Files (x86)\NUnit…
NetSurfer
  • 103
  • 1
  • 9
0
votes
0 answers

NUnit console with dll

I'm using NUnit for unit testing, and I want to send some parameters through the nuni3-console. But when I insert the unit test project I have this error. command inserted: nunit3-console pathToMyProject Error: 'Not possible to associate a…