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

How do I run nunit 2 tests from nunit-console from the command line?

I have built nunit-console from https://github.com/nunit/nunit-console and nunit-v2-framework-driver from https://github.com/nunit/nunit-v2-framework-driver referencing nunit-2.7 assemblies from…
jbcoe
  • 3,611
  • 1
  • 30
  • 45
1
vote
2 answers

NUnit3 UnsupportedFrameworkException

I made NUnit unit test for my c# program but I'm having trouble running the tests with NUnit 3.11.0: I compiled my C# solution with csc with the following command: csc Program.cs ProgramTest.cs /r:nunit.framework.dll -out:Program.exe When I open…
user9172123
1
vote
1 answer

TeamCity - NUnit Console Runner not finding all unit tests when using Kentico Fakes

I have 3 NUnit test assemblies are testing my custom code written for the Kentico CMS platform. I can run these tests both in Visual Studio (using the NUnit adapter) and the NUnit console runner. I'm now trying to have those tests run on my TeamCity…
Peter Monks
  • 4,219
  • 2
  • 22
  • 38
1
vote
1 answer

TestStack.White Menu Operations Affected by System Busy State

This is Windows 10 UI automation testing via nunit3.ConsoleRunner. It is really pretty weird, but the same code that worked flawlessly before my vacation now hangs for so far up to 2 hours or more. I created my own MenuClick() method for our tests…
Jeff H
  • 157
  • 11
1
vote
1 answer

C# - Nunit - nunit3-console not picking the mentioned class file in the where filter

While running an Nunit project with the .csproj extension through Nunit3-console, the two tests are correctly picked correctly. nunit3-console.exe SeleniumCHash.csproj But, when I try to filter out one of the tests by selecting the class file to be…
ItsMeGokul
  • 403
  • 1
  • 5
  • 16
1
vote
3 answers

How to set the result folder using command line parameter to nunit-console?

I am trying to run NUnit tests from command line and trying to save the results under TestResults folder. I have tried using following commands, but nothing has created the test results under intended folder. Rather the test results got created…
zeal
  • 475
  • 4
  • 11
  • 25
1
vote
1 answer

Where is the DLL with test to run with the nunit3 console generated?

I created a project in Visual Studio for unit testing using the nuget package of nunit. The test runs well in Visual Studio using the test explorer, but i Need to run them using the nunit3 console. My project is very simple I: Created a console…
Eduardo Corona
  • 1,262
  • 4
  • 20
  • 31
1
vote
1 answer

How can i display the result of Nunit from a windows container to TeamCity?

I'm building a .net application in a windows container from TeamCity. I have installed on the docker image NUnit3-Console. I want to display the result of NUnit during the build on the tab Test on Teamcity like if i was building from teamcity. The…
Issa Dawaji
  • 183
  • 1
  • 12
1
vote
1 answer

Does "-workers:1" prevent parallelization in nunit3-console when running multiple test assemblies?

I need to ensure that NUnit runs tests sequentially even when running multiple test assemblies so I am using a command line like: nunit3-console.exe -workers:1 testAssembly1.dll testAssembly2.dll testAssembly3.dll But tests are still running in…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1
vote
1 answer

VS2017 solution with 17 projects of which 11 are NUnit test projects fails in AppVeyor with Unable to acquire remote process agent error

We are developing a C# SDK on GitHub that targets the following frameworks: net45;net451;net452;net46;net461;net462;net47;net471;net472;netstandard1.6;netstandard2.0 The VS2017 solution contains 17 projects of…
Sam
  • 333
  • 3
  • 16
1
vote
1 answer

Tests are not running correctly with Nunit 3 console

I'm trying to run specific test(s) with Nunit 3 console. I'm getting no errors , but none of the mentioned tests executed either. nunit3-console --test=c8_test "D:\tfs\QA - Automation\Projects\CrmOnline16\CrmOnline16\CrmOnline16.csproj" The result…
JumpIntoTheWater
  • 1,306
  • 2
  • 19
  • 46
1
vote
1 answer

How to use Nunit custom result writer

https://github.com/nunit/docs/wiki/Result-Writers I'm trying to write customresults for my application using Nunit. But I'm not getting anywhere as I am not able to find any sample on how to implement. Any…
rohit singh
  • 1,239
  • 3
  • 15
  • 26
1
vote
0 answers

Extending Nunit framework for custom need?

I need to be able to pass a reference object to a test class constructor and use that inside test initialize methods to use them within test methods. I also need to be able to configure test runner and run from some point of invocation like a…
Hewitt V S
  • 11
  • 3
1
vote
1 answer

Allure plugin for VSTS returns error: Unknown Test Runner

The VSTS task: Generate Allure Report is failed. The error is : Unable to process command '##vso[results.publish type=Allure;mergeResults=true;publishRunAttachments=true;resultFiles=D:\a\1\s\allure-report\34;]' successfully. Please reference…
1
vote
1 answer

nUnit test fails when run as part of larger namespace

I am having an interesting situation. In my test assembly, I have folders having specific test classes, i.e., TestFixture's. Consider, for e.g., the following hierarchy in VS: Sol TestProject TestFolder1 TestClass1 TestClass2 …
Samik R
  • 1,636
  • 3
  • 15
  • 33