Questions tagged [visual-studio-test-runner]

Microsoft Visual Studio 2012 (and later) provides an open framework that allows 3rd parties to integrate their test frameworks into the Visual Studio and Team Build experience.

The program name is VSTest.Console.Exe.

Suppose to replace MSTest. See comparison at https://msdn.microsoft.com/en-us/library/ms253138(v=vs.110).aspx#Runner

74 questions
0
votes
1 answer

In VSCode, how do I use Test Runner to run a Java JUnit test within the editor?

I have a Java project on VSCode for Windows and I have installed the Test Runner plugin ... I would like to be able to run a test file from the editor and see the results. In Eclipse, I can right click on the test file but when I open the test…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
0 answers

xUnit E2E test debugs successfully, possibly runs successfully, but never ends

I have a xUnit test to quickly check if my API behaves correctly. It's not mocked, just follows some scenarios on flows. [Fact] public async Task HappyPath() { User = await authHelper.CreateUser(); ContentCreator = await…
Mithgroth
  • 1,114
  • 2
  • 13
  • 23
0
votes
1 answer

Could not load file or assembly 'WebDriver, Version=2.53.1.0 when using coded UI Testing

Since today I get the following new Error message: System.IO.FileLoadException: Could not load file or assembly 'WebDriver, Version=2.53.1.0, Culture=neutral, PublicKeyToken=1c2bd1631853048f' or one of its dependencies. A strongly-named assembly is…
Martin
  • 11,577
  • 16
  • 80
  • 110
0
votes
0 answers

Test explorer not running all tests using xunit framework

I am using X unit framework in .NET test project and suddenly the test explorer stopped running all tests, but just a part of them(literally did nothing different for it to stop working). I tried to clean, rebuild solution and update nugget…
0
votes
0 answers

Visual studio test explorer tests are stop executing randomly in the middle of test run

I have written some set of integration tests using XUnit with c#. To complete a single test case takes roughly 7 - 8 minutes and that is expected according to the logics that I'm testing. But the problem is when I run all the tests together(or by…
0
votes
1 answer

VS Code - TestCafe - Change "node" path (Windows)

We have some front automated tests in TypeScript and use TestCafe TestRunner extension in VS Code. To run them, we simply right clic on a file and click "TestCafe: Run Test(s) in Firefox". If Windows path contains the right path to "node", it works…
0
votes
1 answer

Run Selenium UI test on TFS build server for Asp.Net WebForms

I am new to Selenium and TFS build. I wrote some UI test cases with Selenium WebDriver, it is running fine in my local environment. Now, I want to run these UI test cases in the TFS build. I did the following to existing build tasks. Added a Visual…
0
votes
1 answer

Visual studio 2019 & VS 2017 not able to discover tests

I had everything working until a few days ago. After latest update of VS, VS is not able to discover tests. I have tried updating MSTest.TestFramework, MSTest.TestAdapter, Microsoft.Net.Test.sdk nuget pacakges as well but VS studio is still not able…
0
votes
1 answer

Test Explorer does not group by Test Herarichy / Namespace using NUnit in VS 2017

i have been using NUnit with Visual Studio 2017 and its working fine until my test cases grouped wrongly in test explorer i have Code herarichy like Project Name > Component.PDF.Tests Classes Name > PDFDOcument Classes Name > FormField Classes…
Salman
  • 1,266
  • 5
  • 21
  • 41
0
votes
2 answers

NUnit is ignoring DomainUsage in the runsettings file

I'm running tests in Visual Studio using "Test Explorer" with NUnit and a .runsettings file (specified by choosing the option in the GUI "Select Settings File") My settings file (called mytests.runsettings) is:
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
0
votes
1 answer

TFS 2018 Cancelling Visual Studio Test locks dll

As part of a build definitions, we have a Visual Studio Test step. The problem is when the build is canceled manually during VS Test step, it leaves the vstest86.exe process running in the build machine which causes a new build to fail because some…
0
votes
1 answer

Visual Studio 2017 - Test Runner - Debug Selected Tests - NUnit - Not Working

When running Debug Selected Tests in Visual Studio 2017, debugger just starts briefly and shuts down with selected test turning blue icon with exclamation mark (inconclusive test). Output window from Debug shows: The program '[1852]…
Nenad
  • 24,809
  • 11
  • 75
  • 93
0
votes
1 answer

Code Coverage with Visual Studio Test task

I have a project containing azure function implementations. My project .csproj file looks like below. I haved added a test project for the same and implemented unit tests using Xunit. My test project .csproj looks like below. I have added a Visual…
DevMJ
  • 331
  • 1
  • 5
  • 17
0
votes
1 answer

VSTS Test fails but vstest.console passes; the assert executes before the code for some reason?

Well the system we have has a bunch of dependencies, but I'll try to summarize what's going on without divulging too much details. Test assembly in the form of a .dll is the one being executed. A lot of these tests call an API. In the problematic…
0
votes
1 answer

The directory containing the assemblies for the Visual Studio Test Runner is not valid

Our CI environment setup with [TFS Server 2015 + Visual studio build tools 2017]. When I try to run C# based unit test on environment it shows this error TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not…