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

Is is possible to stop my log4net console logs appearing in the nunit console runner test output

This seems like it should be quite simple, but I'm not an expert (or anywhere near) with regards to both 'frameworks' involved here. Part of our build pipeline runs our unit tests using the nunit console runner. We also use log4net and configure a…
Dave
  • 2,829
  • 3
  • 17
  • 44
0
votes
1 answer

Pointing the path of a SUT's DLL and settings.json for a nunit3-console.exe

According to the fact, what I've got my .NET Standard 2.0 Test Libraries and I want to have a standalone console runner in order to run my tests by anyone from my team and by only using console prompt, I have looked around nunit3-console.exe but I…
0
votes
1 answer

Webdriver Driver Mananger 2.7.0 not getting installed from Nuget with .Net framework 4.5

I want to use WebDriverManager in my code when I am trying to install the reference from the Nuget Package Manager I get an error. I have tried updating and degrading the .Net framework. Can we use WebDriverManager 2.7.0 with .Net framework…
0
votes
1 answer

How to print an NUnit test run's XML file as a nice-looking report on the command line?

I have a suite of NUnit tests. When they finish, I get a TestResults.xml file. This file is very large and dense; I'd like to be able to peruse a simple human-readable report of the underlying results. I'm led to believe that the provided…
JesseTG
  • 2,025
  • 1
  • 24
  • 48
0
votes
1 answer

FileNotFoundException during nunit3-console running

I try to run my tests via nunit3-console. Running via Visual Studio works good. I execute this command: $ nunit3-console ComplexUI.dll but get the following input: NUnit.Engine.NUnitEngineException : An exception occurred in the driver while loading…
IvanMikhalka
  • 184
  • 10
0
votes
1 answer

How to send result file after all tests run in nunit console c#

Is there a way to send a mail with result file (I set this file in console command with option --result) after running. I have run my selenium test cases in following way How to Schedule Selenium Web Drivers Tests in C# The result file was created…
0
votes
1 answer

Unable to connect to network drive through Nunit-console runner when running tests

So I have these lines of code right here- // on a network location string fileName = @"S:\Information Technology\QA\Automation\jsons\scheduler_ready\patientInfo.json"; string json = TestHelper.GetJsonFromFilePath(fileName); …
Krazy Dev
  • 184
  • 3
  • 16
0
votes
1 answer

How do you configure TeamCity to run Selenium Tests?

I am setting a TeamCity server on Windows to run automated tests using Selenium, however, I am struggling to get Chrome to fire up from TeamCity. I've tried using the Powershell and command line based build steps to run the nunit console…
Craig
  • 11
  • 1
0
votes
1 answer

Jenkins pipeline script nunit cosole to publish junit report

In jenkins we are using Pipeline Script which has huge code. In that a bit code which I am trying to generate junit report and to publish it in jenkins. I using first time trying to publish a junit report in jenkins. Not sure what are the things I…
user2215220
  • 29
  • 1
  • 5
0
votes
2 answers

TestStack.White ListBox.SelectedItemText not working

I have a WinForms Dialog with 2 ListBox controls. In the application under test, doubleClicking any items in one of the listbox controls (I'll call this the CONTROL LISTBOX) results in selecting the matching item in the other listbox (SLAVE…
Jeff H
  • 157
  • 11
0
votes
2 answers

Running dotcover with NUnit.Console-3.8.0 as target Executable throws exception

I am trying to run dotcover with NUnit.Console-3.9.0\nunit3-console-runner.exe as target executable. Attached code and screenshots of my work so far. using System; namespace secondApp { public class Class1 { public int add(int a,…
murthi
  • 175
  • 1
  • 4
  • 18
0
votes
2 answers

NUnit 3 console runner - How to run a specific .playlist file?

Is it possible to use the NUnit3 Console Runner to run a .playlist file saved from Visual Studio's Test Explorer? I looked into the documentation but couldn't find anything for a .playlist file. Only for a file containing a list of project names.…
MuhKuh
  • 356
  • 1
  • 16
0
votes
0 answers

Testing desktop apps in parallel using nunit + jenkins

I have big task in work. I need to run my tests in parallel to reduce time of execute. At the moment i have around 150 end to end tests which are testing windows desktop app and web app (~1,5h) but i need to run it with 4 different systems which we…
0
votes
1 answer

NUnit console run all categories (where: cat = ' ')

I have a suite of NUnit tests and I am using Jenkins and MSBuild to run them. I have a number of test categories and sometimes I want to run just one category and other times all of them. Category parameter is provided from Jenkins. I have a…
hepek
  • 5
  • 2
0
votes
0 answers

Running NUnit tests with nunit3-console.exe on build machine fails - but they run fine locally

When I try to run the tests from command line on the build machine with nunit3-console.exe TestProject.dll I get the following error: No suitable tests found in TestProject.dll Either assembly contains no tests or proper test driver has not been…
Ola Eldøy
  • 5,720
  • 7
  • 49
  • 82