All Questions
Tagged with nunit nunit-console
204 questions
0
votes
1
answer
63
views
How to print off .xml test result from Selenium in same format as NUnit Console?
I'm trying to build an Azure pipeline that can read test results so that I can automatically update their status in Test Plans. The only way I've been able to print off test results that the Visual ...
2
votes
4
answers
83
views
SetupFixture methods are not executing in expected order
Description:
The [SetupFixture] class methods [OneTimeSetup] and [OneTimeTearDown] are not executing as expected. Instead of running once before and after all tests in the namespace, they appear to be ...
1
vote
1
answer
161
views
How do I get SpecFlow.NUnit to suppress passing scenarios from console output?
When I run my SpecFlow suite with dotnet test, I don't want to see all the step output output from the passing scenarios. I've got nearly 200 scenarios-- I only want to see what's broken!
This was ...
0
votes
1
answer
68
views
Why do we need --dispose-runners parameter in NUnit Console
Referring to the --dispose-runners command line here
My question is of course the runner agent is disposed when the nunit console process completes, so why do we have to specify it at all?
Is there a ...
2
votes
1
answer
236
views
Debug NUnit dotnet test run from VS Debugger, not Test Explorer
TL;DR Is there an equivalent dotnet test switch to NUnit's --inprocess?
Because running dotnet test as StartProgram with the normal VS Debuigging experience (F5) does not allow to debug the test.
...
0
votes
1
answer
186
views
Nunit console runner to test many dll's at once
I have a list of about 20 dll's that contain tests that I would like to run with the nunit.consolerunner via a Github actions on a Windows machine. Using Powershell I have created a string with all ...
-1
votes
1
answer
115
views
How Can I remove all details from TestContext.CurrentContext.Result.Assertions (NUnit.Framework)?
I want to empty/ remove all details packed in 'TestContext.CurrentContext.Result.Assertions'.
How can I do the same ? Pls. guide.
1
vote
1
answer
284
views
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 ...
1
vote
1
answer
94
views
Can NUnit TImeoutAttribute override NUnit Console Runner timeout?
I currently use NUnit Console to run my NUnit 3 tests. I pass a Timeout command-line option to NUnit Console Runner. This timeout is about 30 minutes, but I have one test that takes longer than 30 ...
3
votes
1
answer
408
views
nUnit console fails to use proper configuration file under .NET Core
I have a C# test project compiling under .NET6, using System.Configuration.ConfigurationManager 7.0.0 (so I can use configuration files instead of JSON files, for legacy reasons).
The code looks like ...
0
votes
1
answer
293
views
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. ...
0
votes
1
answer
1k
views
"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 ...
0
votes
1
answer
278
views
Use NUnit Console Runner to run all of the test projects under a VS solution
My VS Solution consists of production code and also test code, properly separated into different csprojects. It's always one to one correspondence between a production project and a test project.
Is ...
0
votes
1
answer
161
views
How to set global timeout for project in NUnit
I want to set a global timeout for running a project in NUnit so that all tests in the project in total do not exceed for example 1 hour and sequential execution of tests is interrupted when this ...
0
votes
1
answer
101
views
Unit testing net5.0 ASP.Net projects with the NUnit console?
I've recently been trying to implement automated unit test within my Jenkins pipeline using the nunit3-console.exe, for multiple Test projects that implement Microsoft and Asp.Net related ...