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
20
votes
4 answers

Visual Studio 2013 is unable to open the Test Window

When I open Visual Studio 2013 and load my solution I'm greeted by an error message telling me the Test Window is unable to load. The composition produced a single composition error. The root cause is provided below. Review the…
jessehouwing
  • 106,458
  • 22
  • 256
  • 341
16
votes
2 answers

F5 to run Visual Studio Test in debugger

I'm using Visual Studio Test for C++, and am debugging a specific test. Microsoft has provided all kinds of ways to run the test in the debugger, but none that I really like. I am getting tired of having to go find the test code and then press…
jws
  • 2,171
  • 19
  • 30
13
votes
4 answers

How do I exclude service references from code coverage using the runsettings file in Visual Studio 2012?

I'm using a custom runsettings file to control what projects are inspected for code coverage. I used the default template provided by Microsoft and have so far been able to exclude the items I want with no issues. My next action is to exclude from…
10
votes
1 answer

Displaying hierarchy of nested classes in vs test runner (using XUnit)

I have an issue finding how to display tests according to class hierarchy in MS Test Runner (same in Resharper test runner) using XUnit. I have structure similar to below example: public class ManagerTests { public class Create { …
Base
  • 1,061
  • 1
  • 11
  • 27
10
votes
2 answers

Resharper 8.1 Test Runner slowing down Visual Studio Text Editing

I've got a fairly small C# solution with about 5 projects in it. I am using Visual Studio 2012 with Update 4, and Resharper 8.1 (build 8.1.23.546). It's on an I7 with an SSD and 16GB RAM, with oodles of disk space. Performance on this machine is…
10
votes
1 answer

MS VS test runner exceptions

I always get the following exceptions after my test has already completed, and the test runner is in the process of shutting down. Is this normal? I always feel rather concerned when I get a bunch of random exceptions.. The thread '' (0xc04) has…
9
votes
0 answers

Unit test .Net Framework 3.5 project in VS 2017

I have some legacy projects with test libraries. The projects (and unit tests) target .NET 3.5. We are using VS 2017 enterprise. I was able to locate some nuGet packages that would allow the tests to build correctly, but Test Explorer does not see…
Richard Hauer
  • 1,298
  • 9
  • 22
5
votes
1 answer

How to run a .NET method without making it a unit test?

I like the convenience of test runners to run a single test method. Is there a way to run any method without making it a test? The reason being I'm tired of writing Console apps with a CLI menu or a Windows Form with a button per method only for…
John K
  • 28,441
  • 31
  • 139
  • 229
5
votes
1 answer

vstest.console.exe not generating trx file, TestResults empty

I am trying to run below command on my build server, c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "C:\UnitTest\MyTests.dll" /settings:"C:\UnitTest\output.runsettings" …
rajcool111
  • 657
  • 4
  • 14
  • 36
5
votes
3 answers

How does the Visual Studio 2012 test runner apply threading?

Does each Class containing tests run in it's own thread? Or does each individual test run in it's own thread? If each Class containing tests has its own thread, are these run concurrently? ie, would tests from class A run concurrently with tests…
Shawn de Wet
  • 5,642
  • 6
  • 57
  • 88
4
votes
2 answers

Running unit tests for typescript in VS

I've found couple of examples of running unit tests for typescript. All of them are based on referencing both ts and js file like /// /// Unfortunately when I try to reference js…
3
votes
1 answer

NUnit How to attach screenshot to test attachments in Azure Pipeline

We want to attach screenshots to the Test Attachment in Azure pipeline. Currently, we use .NET 4.5.2 Selenium.WebDriver 3.141 Selenium.Chrome.WebDriver Nunit 3.12.0 Specflow.Nunit 2.4.0 It is similar with the follwing example but we use NUnit…
Tung Nguyen
  • 574
  • 8
  • 16
3
votes
1 answer

Installing test runner on Visual Studio without NuGet

I recently installed XUnit and the XUnit VS runner (i.e. xunit.runner.visualstudio) on Visual Studio following the documentation. The installation process uses NuGet and on completion I can successfully see all tests in the MS Test…
James B
  • 8,975
  • 13
  • 45
  • 83
3
votes
1 answer

Remove Cookies in Visual Studio WebTest

I want Remove Cookies of application in visual studio webtest how can i do it ? this is one of my WebTestRequest WebTestRequest request = new WebTestRequest( DataProvider.Data.OnlineServer + "/Auth/Login" ); request.Method =…
arash
  • 61
  • 1
  • 6
3
votes
1 answer

Visual Studio and Nuget based Test Runners/Adapters

Recently I came to know about the nuget based adapter/runner (http://xunit.github.io/docs/running-tests-in-vs.html) I was trying to understand how these runners/adapters are recognized by Visual Studio and then used by the TestWindow. For example,…
Chandu
  • 81,493
  • 19
  • 133
  • 134
1
2 3 4 5