visual-studio-test-runner

Custom Test Adapter is not showing tests on Test Explorer

北战南征 提交于 2019-12-08 01:14:39
问题 I am trying to implement a custom Test Adapter, all the files are bellow: TSTestDiscoverer.cs TSTestExecutor.cs TSTestContainer.cs TSTestContainerDiscoverer.cs VsSolutionHelper.cs from XMLTestDiscoverer source code Using vstest.console.exe /listdiscoverers /usevsixextensions:true I confirmed that the extension is installed and it is listed on the test discoverers. Running vstest.console.exe file.ts I confirmed that both TSTestDiscoverer and TSTestExecutor are working correctly. Now I want to

Custom Test Adapter is not showing tests on Test Explorer

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 11:53:29
I am trying to implement a custom Test Adapter, all the files are bellow: TSTestDiscoverer.cs TSTestExecutor.cs TSTestContainer.cs TSTestContainerDiscoverer.cs VsSolutionHelper.cs from XMLTestDiscoverer source code Using vstest.console.exe /listdiscoverers /usevsixextensions:true I confirmed that the extension is installed and it is listed on the test discoverers. Running vstest.console.exe file.ts I confirmed that both TSTestDiscoverer and TSTestExecutor are working correctly. Now I want to list the tests on Test Explorer, for that I guess I need ITestContainer and ITestContainerDiscoverer .

Visual Studio and Nuget based Test Runners/Adapters

浪子不回头ぞ 提交于 2019-12-05 23:19:24
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, if I install "xunit.runner.visualstudio" nuget package all the xUnit based tests in my project are discovered and displayed in the Test Window. I am trying to understand how does VS hook the Test Discovery using the package installed in packages folder? Where/how do VS and nuget based adapter get hooked? I tried finding this information but my

Visual Studio and Nuget based Test Runners/Adapters

一个人想着一个人 提交于 2019-12-01 06:12:14
问题 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, if I install "xunit.runner.visualstudio" nuget package all the xUnit based tests in my project are discovered and displayed in the Test Window. I am trying to understand how does VS hook the Test Discovery using the package installed in packages

Resharper 8.1 Test Runner slowing down Visual Studio Text Editing

假装没事ソ 提交于 2019-12-01 03:23:11
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 fantastic for everything else. I have R# set to be my unit test runner, and I've noticed that as soon as I run any unit tests (one or many, pass or fail, makes no difference), the Visual Studio text editor becomes almost unusable. Typing into the editor window suffers such extreme lag (up to 1 second between keystrokes) that it completely breaks down

How does the Visual Studio 2012 test runner apply threading?

孤人 提交于 2019-11-30 05:27:26
问题 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 from Class B? Or would class A's tests run (each on their own thread), followed by tests from Class B (each on their own thread)? 回答1: Does each Class containing tests run in it's own thread? No. All tests run on the same thread Or does each

Visual Studio 2013 is unable to open the Test Window

喜夏-厌秋 提交于 2019-11-28 10:47:27
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 CompositionException.Errors property for more detailed information. 1) Cannot compose part 'Microsoft.VisualStudio.TestWindow.Controller.TestsServiceInternal' because a cycle exists in the dependencies between the exports being composed. To break this cycle, consider changing some imports from constructor to property injection. Element: Microsoft.VisualStudio.TestWindow