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

NUnit test process fails frequently with WPF controls

We have an NUnit test project with 1000 tests or so. The project contains high level component test mainly for a custom WPF control. The test process frequently fails on our build server (TeamCity) with: InvalidOperationException "LocalDataStoreSlot…
pappati
  • 171
  • 1
  • 9
5
votes
1 answer

Build and run unit-tests with two distinct jobs

I have a basic setup: some source files stored in GitHub that are pulled and built by a Jenkins job. Now I'd like to run the unit-tests automatically when the build is done (I'm using NUnit if it can help). I could add another build step to the…
Pragmateek
  • 13,174
  • 9
  • 74
  • 108
4
votes
1 answer

Is there a way to get nunit-console to indicate its progress?

nunit-console doesn't give a progress indicator at the command line indicating tests that have passed or failed until all tests have run. This kinda sucks since rspec will output each passing/failing test. Is there a way to make nunit-console…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
4
votes
1 answer

Run Xamarin.UI tests from command line for a specific platform

I have a Xamarin.UITest project than contains UI tests for both Android and iOS. All tests inherit from a base class that looks like: [TestFixture(Platform.Android)] [TestFixture(Platform.iOS)] public abstract class UITestBase { private readonly…
Cocowalla
  • 13,822
  • 6
  • 66
  • 112
4
votes
2 answers

Teamcity Nunit 3.0 Console Runner not working

I am trying to use NUnit 3.0 Console runner with Teamcity. Here is my confiuration. When I run the configuration, I get the following error > Run Unit Tests (NUnit) (1s) [10:44:03][Step 3/3] ##teamcity[buildStatisticValue…
Afraz Ali
  • 2,672
  • 2
  • 27
  • 47
4
votes
1 answer

How to run NUnit 3.0 with Mono 4.0 runtime?

I'm trying to run a test assembly built with .NET Framework 4.5.1 on Mono 4.0 and NUnit 3.0 on Windows. Does anyone know how to make nunit-console.exe see the Mono 4.0 runtime that is installed on my machine and stop saying it is unknown or not…
Rafael Romão
  • 1,788
  • 3
  • 20
  • 35
4
votes
2 answers

Issues with running nunit-console.exe with Mono

I could make a dll for NUnit NUnit test under mono, but when I tried to run in with nunit-console.exe I get the following error message. Runtime Environment - OS Version: Unix 10.3.0.0 CLR Version: 2.0.50727.1433 ( 2.6.4 (tarball Thu Apr 22…
prosseek
  • 182,215
  • 215
  • 566
  • 871
4
votes
2 answers

Powershell error in Executing NUnit test

This might sound silly but I have been trying to execute a NUnit test using powershell script, had several attempts but no hope. is there different format or do I need to add a plugin? Any help would be appriciated... Command = "c:\Program…
Ozie Harb
  • 357
  • 2
  • 3
  • 14
4
votes
1 answer

monocov did not generate output on (OS X 10.7.4)

I am attempting to use monocov for counting unit testing coverage and encountered a problem, had some exhausted google but seems no relevant answer available. I download and build the monocov successfully by following this tips showed in this…
3
votes
1 answer

How to disable generating nunit-agent log file when running tests with nunit3-console

I have a question regarding the nunit3-console. When running tests through it I am observing a generation of log files like internal-trace and nunit-agent text files. I was able to disable the generation of the internal-trace with the --trace=off…
ciconq
  • 201
  • 1
  • 2
  • 11
3
votes
1 answer

Debug Visual Studio 2010 tests using nunit-console and VS-macro

I'm trying to debug tests from visual studio using nunit-console using a VS-macro, but I'm having issues when attaching the debugger / IDE to nunit-console / nunit-agent. I do have the macro working, if I just want to run the test, the issue is only…
jasper
  • 3,424
  • 1
  • 25
  • 46
3
votes
2 answers

Redirecting 'nunit-console' output to the Visual Studio output window

I am testing an F# project using NUnit. On the debug tab of project configuration I have set the debugger to use an external program which is nunit-console here and the working directory to the debug folder of my project. I prefer using…
amirmonshi
  • 649
  • 5
  • 19
3
votes
1 answer

FAKE + Nunit: Can't find nunit-console.exe

I'm a maintainer for FSharp.Charting. Recently our FAKE testing rules started breaking with the error reported below (specifically I'm calling build.cmd RunTests). FAKE seems to be picking up the incorrect path and exe name for nunit-console,…
Robert Sim
  • 1,428
  • 11
  • 22
3
votes
1 answer

Travis CI can't run the NUnit 3 Console Runner

I have remote builds set up using Travis CI. Here is my configuration file: language: csharp solution: DungeonGen.sln install: - nuget restore DungeonGen.sln - nuget install NUnit.Runners -OutputDirectory testrunner script: - xbuild…
cidthecoatrack
  • 1,441
  • 2
  • 18
  • 32
3
votes
0 answers

Run generic NUnit tests from command line of VS2015 SP1

Problem: after installing SP1 for Visual Studio 2015 i cannot execute generic test from command line. My command line and output is the next: "C:\Program Files (x86)\Microsoft Visual Studio …
1 2
3
18 19