Questions tagged [vstesthost]
14 questions
16
votes
1 answer
Visual Studio 2012 vstest: run tests that do not belong to a category
Is it possible to run all tests that do not belong to a category from the command line? From the documentation, I know that I can run all tests that are a member of a category doing something like:
vstest.console.exe myTestProject.dll…

acarlon
- 16,764
- 7
- 75
- 94
10
votes
4 answers
VS10 debugger error: Test host process exited unexpectedly
I have been having some problems with the test debugger in VS10. All tests are running without error, but when debugging it aborts when I try to read the object data. Afterwards, this error is displayed in the summary: Test host process exited…

Tinia
- 205
- 3
- 9
5
votes
4 answers
VSTestHost.exe has stopped working - can't run unit tests
The Microsoft unit testing framework has suddenly gone on strike.
When I try to run tests in VS2008, I get a dialog with the message "VSTestHost.exe has stopped working".
I have Visual Studio Team System 2008 (version 9.0.30729.1 SP) running on…

Anthony
- 5,176
- 6
- 65
- 87
5
votes
2 answers
Cannot run VSTest.Console.exe from a Windows or non interactive service for a Windows Phone Project
I installed the Visual Studio 2012 Update 2 and successfully run a set of Windows Phone tests from the command line
I then tried to do this from Jenkins (using the VSTest Plug In) and received the following message which apparently has something to…

John Parr
- 61
- 1
- 6
2
votes
2 answers
Threading issue with running WatiN tests under VSTestHost
I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. WatiN is firing an exception:
System.Threading.ThreadStateException: The CurrentThread needs to have it's
ApartmentState…

Craig Fisher
- 1,681
- 2
- 19
- 26
2
votes
1 answer
Why does VSTestHost.exe load assembly from c:\windows\assembly\temp directory?
I am developing an assembly which has to be installed in the GAC, and as part of a post-build step I ensure that the GAC gets updated after each build. If I create a (Visual Studio) unit test (in a seperate tests assembly) to call a new method on a…

pete757
- 319
- 4
- 12
1
vote
1 answer
How do I debug a custom test adapter in Visual Studio
I am working on a custom test adapter for Visual Studio 2017. How can I configure Visual Studio to debug the test adapter without having to use a hack such as adding Debugger.Launch() in my adapter code?

Christopher Haws
- 1,715
- 21
- 21
0
votes
0 answers
Simulate the UP arrow key press on a keyboard for a test executed by TestHost
I am trying to programmatically simulate the pressing of the UP arrow key on the keyboard for an end-to-end test. The test runs under TestHost in Visual Studio.
My work is divided in 2 parts:
1- The function in the below code is inserted in the…

Bob the builder
- 21
- 1
- 3
0
votes
3 answers
testhost.exe crash with access violation exception
I have an unhandled exception in my code which:
crashes my testhost.exe process
and fails my azure pipeline build (exactly within the VSTest task).
Exception: 0xC0000005: Access violation read location 0xFFFFFFFFFFFFFFFF
After analyzing the dump…

hergli sedki
- 65
- 2
- 4
0
votes
0 answers
AutomationUI function test don't start by Azure Pipelines YAML
I have to run some AutomationUI functional tests from Azure DevOps Pipelines. The tests use a desktop application in WPF/Winforms. The problem is a process of application start but without UI. I run the test using YAML and tasks: VSTest@2 or…

ABoro
- 1
- 1
0
votes
1 answer
Problem loading C++ DLL from within visual studio test environment
So I've been trying set up tests on my solution using the visual studio test environment. The setup looks like this:
Third party native library --> Managed C++ wrapper DLL --> C# project being tested
^ …

reveazure
- 653
- 2
- 7
- 14
0
votes
3 answers
VsPerfMon.exe and VsTestHost.exe Processes Hang when Run by MSTest from CruiseControl.NET
I'm using CruiseControl.NET with MSTest to build my vs2008 project and run my unit tests.
If I run the tests from Visual Studio 2008, they work perfectly. However, when the tests are started by CruiseControl, the VsPerfMon.exe and VsTestHost.exe…
0
votes
1 answer
vsTestHost.exe uses only one processor
I have a simple load test that is using one TestMethod on a quad core 64 bit windows 2008 box.
When i run the load test, i only see one processor being used to 100%, other processors are just idle, and i know that the server is not being hit to the…

np-hard
- 5,725
- 6
- 52
- 76
0
votes
1 answer
Run Visual Studio 2013 unit test without installing visual studio on server
I'm trying to run my unit test created via Visual Studio 2013 on my staging server.
I don't want to install Visual Studio there, not the Test Agent so I found a way to run them by copying some of the DLLs and EXEs needed.
Yes, I know it is a hack…

Cristiano Ghersi
- 1,944
- 1
- 20
- 46