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

Bamboo NUnit Parser Failing task since test cases were expected but none were found

My bamboo build NUnit Runner task is creating the following result file: ${bamboo.build.working.directory}\bld-output\${bamboo.ACM.AssemblyInformationalVersion}\ACCCMApplication\TestResult.xml But my NUnit Parser bamboo task (which is the next…
donal
  • 163
  • 2
  • 4
  • 13
0
votes
1 answer

How to pass json file to Nunit3 tests execution from command prompt

I have a json file which has my app url and other details. i am running my tests from cmd prompt using nunit3-console runner. how can i pass the json file as parameter to my tests execution
0
votes
1 answer

Nunit-console3 default encoding

I'm saving failed tests to file to rerun them again with nunit-console3. Looks like some tests which contains TestCase with Cyrillic characters in test case parameters are skipped. I looked at file and seams that encoding is quite strange. What is…
Emil
  • 171
  • 1
  • 8
0
votes
1 answer

Can I run multiple nunit tests sequentially from command line?(using nunit console runner)

I have a text file with list of test names. I want to run those tests in sequential order. Is there any command to use? I have used --testlist option.
0
votes
1 answer

NUnit testlist specifying tests to exclude

So I have a fairly large amount of UI tests I kick off using NUnit, and in order to control what tests are ran in what environments, we use a test list. The test list currently contains a list of tests that are included in the test run, but I would…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
0
votes
1 answer

Running Test Cases Separately Nunit Console Runner

I am developing tests using Nunit3 and have several test cases for one method. I want to run test cases separately using Nunit console runner. How can I achieve this? [TestCase(12,3,4)] [TestCase(12,2,6)] [TestCase(12,4,3)] public void…
user3035729
0
votes
0 answers

Slow execution of tests using Teststack.White + Nunit3-console

Hello i have small problem with nunit and teststack white. Here i have small test (Window is localized with option WithCache): [Test] public void ShouldLogIn() { var loginPanel = Window.Get("txbLogin"); var loginTextBox =…
0
votes
2 answers

Does NUnit 3.9 support Test Suites?

I am trying to find a way to create custom suites of NUnit tests to target our wide variety of environments. The closest thing I found was this http://nunit.org/docs/2.5.6/suite.html which is exactly what I am looking for. Tying to implement this…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
0
votes
1 answer

Targeting NUnit Playlist while running tests through TFS

We have a TFS build definition that kicks off NUnit tests tagged with the 'Regression' test category. This uses the NUnit console runners annotation of where cat = 'Regression' However, we have multiple different environments where some tests will…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
0
votes
1 answer

Selecting tests by parameter in NUnit 3 console

I have tests parameterized with ValueSource attribute. The source provides 3 parameters (these are environments to run the test in) and I can see and select them in Test Explorer in Visual Studio. But how do I select specific parameters when using…
YMM
  • 632
  • 1
  • 10
  • 21
0
votes
1 answer

How to get nunit runners generated nunit-report.xml file in teardown

I currently run a suite of tests and in the TestFixtureTearDown I look for the "nunit-report.xml" and generate a webpage with the results. The problem is that this file will not be generated by nunit until after it has ran through the teardown. Is…
TB14
  • 187
  • 1
  • 15
0
votes
1 answer

Different nunit versions per branch in teamcity

When teamcity NUnit 3 build step is used it asks for a path to the nunit console runner. It is configured to search for it in a specific folder in the packages, like packages\NUnit.ConsoleRunner.3.6.1\tools. But after upgrading nunit to a newer…
Sly
  • 15,046
  • 12
  • 60
  • 89
0
votes
1 answer

NUnit-console wants me to install .NET 3.5

I'm trying to run some NUnit tests written in Visual Studio on the command line using NUnit console. The tests are built using .NET 4.5. To run them, I'm typing: nunit3-console mytests.dll And I keep getting a pop-up which tells me "an application…
rozza
  • 927
  • 2
  • 11
  • 24
0
votes
1 answer

Project compiles fine, tests run inside visual studio, but nunit-console "Could not load file or assembly ..."

I have a Visual Studio project, that builds fine, and the nunit 2 tests run fine within Visual studio, using the test adapter and / or with 3rd party tools (eg Code Rush, TestDriven.net etc) However, when I run nunit-console version 2.6.4.14350 on…
cedd
  • 1,741
  • 1
  • 21
  • 34
0
votes
1 answer

CakeBuild: Get failed to install tool 'NUnit.ConsoleRunner'

I used CakeBuild to build and test my Xamarin Portable Class Library. In the build.cake script I defined that I want to use the NUnit-Console to run my testcases. So I do #tool nuget:?package=NUnit.ConsoleRunner Unfortunatelly I get the following…
Pepper
  • 194
  • 11