Questions tagged [nunittestadapter]

The NUnitTestAdapter extension works with the Visual Studio Unit Test window to allow integrated test execution under Visual Studio 2012, 2013 and 2015

38 questions
18
votes
5 answers

Unsupported test framework error in NUnit

I am using NUnit testing with Visual Studio 2013. We are using NUnitTestAdapter for integration of test run of NUnit with Visual Studio. Visual Studio 2013 NUnit is version="3.0.1" NUnitTestAdapter version="2.0.0" .Net Framework 4.5.2 All packages…
Pranav Singh
  • 17,079
  • 30
  • 77
  • 104
16
votes
2 answers

What is the $RANDOM_SEED$ file generated by Visual Studio build of C# solution?

We noticed that on a certain dev machine a Visual Studio (2015 update 3) debug build of a C# solution was generating a $RANDOM_SEED$ file alongside every built DLL. The content of the file is just a single number e.g. 1443972318 Deleting the file(s)…
9
votes
7 answers

The type or namespace SelectElement could not be found in selenium c#

driver.FindElement(By.Id("inputUsername")).SendKeys("aca"); driver.FindElement(By.Id("inputPassword")).SendKeys("123"); driver.FindElement(By.TagName("button")).Click(); SelectElement oSelect = new…
Kevin
  • 147
  • 1
  • 1
  • 10
3
votes
1 answer

Could not find a test logger with AssemblyQualifiedName, URI or FriendlyName 'nunit'

I am trying create a nunit test results xml file and attach it to a test run of my build in dev ops. I have the NUnit3TestAdapter.3.13.0 package installed in my test project and reference this in console options of the VS test task (test task is…
Andybrad
  • 51
  • 1
  • 4
3
votes
1 answer

Test class name is not printed in output by NUnit3TestAdapter

We use VSTS to run NUnit based tests on remote machine using NUnit3TestAdapter version 3.9.0. Tests are run from several classes. My question is, how to print name of the class (or any other indicator that particular tests are from given class)…
szalafe
  • 112
  • 2
  • 8
2
votes
1 answer

How to get a results file from Nunit Test Adapter ran in Visual Studio with Test Explorer

I have been running my tests with Specflow+ through Test Explorer in Visual Studio and a nice .html report is automatically generated at the end by the Specflow+ Runner. I have switched to Nunit Test Runner (still running through Test…
Matt
  • 773
  • 2
  • 15
  • 30
2
votes
0 answers

Why netstandard2.0 shows warning for NUnit3TestAdapter but netstandard1.6 does not?

NUnit3TestAdapter nuget package shows warning message in reference when target framework is netstandard2.0 but when project target framework is netstandar1.6 it does not show the warning. I would like to understand the difference in this…
2
votes
3 answers

VsTest NUnit xml.document error .NET Core

I created NUnit tests in .NET Core 2.0 project. I want to run them as part of VSTS release using VsTest - TestAssemblies. When I run this step for my DLL in VSTS, I am getting the following error (or rather warnings), and no tests are being…
2
votes
2 answers

How to generate NUnit XML report while running test using VSTS (Unit Test Adapter)

I am automating web application using Selenium WebDriver with C# NUnit Framework and able to generate report in XML format when run test using NUnit GUI or NUnit Console. I am looking how to generate report while running test using Nunit Test…
2
votes
1 answer

Running NUnit test without nunit.framework.dll in the same repository

So I've got my dll of test compiled with NUnit 3.2.1 that I run with the command "vstest.console.exe" in another program as follow : var Args = "/UseVsixExtensions:true" + " " + "\"" + @"D:\path\myDllTestNunit.dll" + "\"" + " " +…
neow
  • 21
  • 3
2
votes
1 answer

NUnit Test Adapter is showing duplicate failed tests

I am using NUnit Framework 2.6.4 and NUnit Test Adapter 2.0.0 (which seems to support up to 2.6.4). I am running Visual Studio 2015. I have noticed in the Test Explorer Window that when tests fail, they show up as duplicates 3-4 times in a row the…
James
  • 624
  • 4
  • 13
1
vote
1 answer

Test Explorer is finding tests, but not running them after upgrading to NUnit3TestAdapter v4.3.0

I'm running Visual Studio Professional 2019 and have many NUnit tests in my project. A few days ago, I updated my NUnitTestAdapter nuget package from 4.2.1 to 4.3.0 and now my Test Explorer does not run any of the tests. It throws no errors and has…
Guitrum
  • 171
  • 1
  • 10
1
vote
1 answer

SetUpFixture is not working in .net core 3.1 its not calling OneTimeSetUp

I am trying to call [OneTimeSetUp], but it's not calling it and directly calling [TestFixture] SetUp. below is my packages that I am using working fine in .NetFramework v4.X **
1
vote
0 answers

How to force parallelization of tests on Azure+Nunit?

We are setuping our current solution on azure devops. We have a big bunch of tests(some unit tests, some integrations tests) all running with NUnit. We have configured the test like this: - task: VSTest@2 timeoutInMinutes: 600 inputs: …
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
2 answers

Nunit Test Adapter not discovering tests

I'm using NUnit framework v3.12.0 and NUnit3TestAdapter v3.17.0 (latest) in VS2015. The problem I have is that it does not discover any test. I've tried deleting Temp files, and it is not working. The only way it works is by changing, every time I…
ales172
  • 51
  • 1
  • 8
1
2 3