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

NUnit v3 alpha in command line: Assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I'm trying to run NUnit v3 alpha from command line. Here's my command line: [...] \NUnit3\nunit-console NUnitAlpha3Experimental.exe /framework:net-4.5 At first, I got this error: Errors and Failures Could not load file or assembly…
evg02gsa3
  • 571
  • 5
  • 17
1
vote
1 answer

Nunit-console.exe fails with return code 7 using Nant and Bamboo

I'm getting not too much saing error while running nunit test on Bamboo build server. It causes showing build resuts as red and shows that project has only 27 unit test and all they passing (project has more than 500 tests and some are…
Miłosz Wierzbicki
  • 2,082
  • 1
  • 13
  • 15
1
vote
0 answers

Nunit missing code coverage option in xml report

I am generating an NUnit test report XML from solution. I am using Specflow to generate an HTML file, however the report is missing code coverage summary. Please help me to add code coverage summary in report. I am using this batch file: cd…
LovingMVC
  • 305
  • 3
  • 5
  • 15
1
vote
1 answer

Trigger correct email when no NUnit tests are run in Jenkins

Setup: Jenkins NUnit Selenium Email-ext (Jenkins plugin) We have a test suite in C# that does setup: it checks in TestRail for what tests exist in the test plan, and writes to a file that list of tests. The build in Jenkins has two build steps…
XtinaS
  • 194
  • 3
  • 15
1
vote
1 answer

How can I let CruiseControl.NET/nant run all Unittest projects postfixed with .Test?

In our continuous integration setup, I would like to set up CruisControl.NET to automatically run all our unittests. However, I don't want to have to specify every unittest dll seperately in the configuration. All the unittest projects are all…
Matthijs Wessels
  • 6,530
  • 8
  • 60
  • 103
1
vote
1 answer

What are the minimum required dependencies for the NUnit console?

Possible Duplicate: Minimum NUnit binaries for an OSS project I would like to use this custom NUnit build activity on the TFS 2010 build server. It runs NUnit test the same way as MSTest on the build server (with full reporting). It requires the…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
0
votes
1 answer

When running multiple tags with NUnit Console Runner and SpecFlow I get incorrect results

This is a follow up to my earlier questions on setting up tags: Can I use tags in SpecFlow to determine the right environment to use? and setting up variables from those tags: How to set up a URL variable to be used in NUnit/SpecFlow…
MichaelF
  • 487
  • 2
  • 12
  • 31
0
votes
0 answers

How to Exclude explicit tests with the where Test Selection Language

How does one specify to exclude tests that are marked with the Explicit attribute via NUnit3 console runner with the Test Selection Language?
lee23
  • 409
  • 1
  • 3
  • 10
0
votes
0 answers

Can NUnitLite call a unit test .dll?

The standard use of NUnitLite is to convert a NUnit test library and convert it to an exe, and add the Main() method. I want to keep my test library intact and just add an NUnitLite exe project to my solution, because I want to be able to run the…
Naughton
  • 124
  • 1
  • 8
0
votes
0 answers

Got unexpected error of "NUnit.Engine.NUnitEngineUnloadException" after the nunit test case running successful

I'm running nunit test case with C# code, every time, the case is passed, but in the output log, I can see below error: NUnit.Engine.NUnitEngineUnloadException : Agent Process was terminated successfully after error. ---->…
0
votes
1 answer

Getting SocketException when trying to run multiple NUnit3 Console Runner processes using Jenkins

I have a Jenkins test agent that is set up to run two distinctly different test jobs that use Nunit3 Console Runner to execute the tests. Each job starts the Nunit3 Console executable on the test agent with a different test assembly. I am trying…
Ken
  • 72
  • 8
0
votes
1 answer

Can I run nunit3-console directly on Linux as a .NET 6 app or is it just compatible with .NET 6 test assemblies?

We've been using Mono for years to run our .NET app. We've recently started building using .NET 6, which allows it to run directly without Mono. NUnit.ConsoleRunner.3.15.2 supports .NET 6. I'm wondering if that means I can run nunit3-console without…
Kurt
  • 1
  • 3
0
votes
0 answers

nunit-console and wrong AppDomain.CurrentDomain.BaseDirectory

I run tests via nunit3-console (v3.16.2). The value of AppDomain.CurrentDomain.BaseDirectory in the test will be the path to the directory from where the console runner is essentially launched. I can't use TestContext because of the call to…
Daniel
  • 53
  • 1
  • 7
0
votes
1 answer

How to execute specific test classes with Jenkins Build Step

I've got Jenkins downloaded and setup on my local machine. So far I've been able to have it sync up with my github repo, pull the code down and build successfully, and then it also runs all the tests. I do all of this using the built-in Execute…
user1818298
  • 509
  • 2
  • 8
  • 23
0
votes
1 answer

"No test is available" when running .Net7.0 tests with nunit console runner using dotnet test

I am trying to run my NUnit tests built with .Net 7 in Jenkins. They run perfectly fine locally in my Visual Studio. I can't get them to run on my Windows machine my Jenkins Agent is running on since upgrading from .net framework 4.X to .Net 7.0. I…
J.R. Bye
  • 98
  • 2
  • 12