Questions tagged [vstest.console.exe]
102 questions
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
1
vote
1 answer
vstest pass pass parameter to "dotnet test" execution
Description
I want to run a .net core NUnit test with the vstest.console.
This is working fine but I want to pass to the "dotnet test" execution a parameter, in my case "--no-build"
How I can parse this parameter to the dotnet execution? I have not…

aumanjoa
- 905
- 1
- 11
- 30
1
vote
1 answer
Formatting console output when running multiple Unit Tests in vstest.console.exe
Situation
I'm using vstest.console.exe to run some unit test projects at once. Also I am interested in the console output since I cannot use I/O operations to log results to .trx file. I am also limited to one instance of vstest.console.exe. So I…

Svetlin Galov
- 11
- 2
1
vote
1 answer
Visual Studio Team services run webtest
I am a bit new to the Team services, So usual apologies first. I am in need of running a webtest (webtest1.webtest created by recording browser steps i.e the same used for load test runs) which runs fine locally on a VS 2015. I am looking for a…

Dhaya K S
- 11
- 1
1
vote
0 answers
orderedtests not working with vstest.console.exe when .runsettings file is specified - MS Test
I have the following:
.orderedtest file which has a list of tests in an order
.runsettings file where I have specified some test parameters
I am trying to execute the tests through command line, using the following command:
vstest.console.exe…

Rishi
- 31
- 4
0
votes
1 answer
Jenkins VSTest Runner not working as expected
Having problems get VSTest plugin to work in Jenkins.
So first this command line version works spot on so I know the paths etc are correct -
"C:\Program Files\Microsoft Visual…

Kev
- 121
- 3
- 20
0
votes
0 answers
vstestconsole.exe: Data collection : Unable to find a datacollector with friendly name 'CatchEventsCollector'
I'm using a custom Datacollector for vstestconsole.exe (Version 14.0.25420.1) on a Windows Server 2012 R2 Standard and it works perfectly.
After migrating to Windows Server 2019 and vstestconsole.exe (Version 16.11.0) I still execute the same…
0
votes
1 answer
Github Actions UWP vstest fails to start (access denied) on self-hosted runner but not on github-hosted runner
I set up a self-hosted runner to run my UWP tests (on Windows 10). The tests run fine when I am locally connected via RDC and run vstest.console.exe from a powershell. The exact same command does give below error (UnauthorizedAccessException: Access…

Dr.J
- 334
- 3
- 12
0
votes
1 answer
Pass the triggering repository details to Integration Tests from VSTest.Console.exe
I can able to run the VS integration tests from the build on the build machine in TFS Azure Release pipelines.
C:\ci\vstest.console.exe C:\ci\netcoreapp3.1\API.Smartbox.dll /TestCaseFilter:"Category=Repo1" /inIsolation
Here I want to filter out…

Santoshkumar
- 51
- 9
0
votes
1 answer
vstest.console.exe not finding google tests - but running exe with --gtest_list_tests does
I'm trying to run google test using vstest.console.exe.
I'm wondering if there is a way to debug why vstest.console.exe is not finding google tests.
Here is some output running…

Derek
- 7,615
- 5
- 33
- 58
0
votes
0 answers
Order of execution of test cases in C++
I have written a sample .Net Framework Test Application program in C++ which contains 3 methods Test1,Test2,Test3 (using MSTest Framework). If I use VSTest.Console.exe to execute the test cases in release mode, the order of execution of test cases…

Dev
- 21
- 1
- 2
0
votes
1 answer
Jenkins vstest runner - no files matching the pattern
I am new to Jenkins and trying to run some unit test for a sql database using VS Test Runner plugin each time I am getting the response "no files matching the pattern [full file path]/Unit_tests.dll".
I have tried running the tests in command line…
0
votes
1 answer
Test run will use DLL(s) built for framework .NETFramework,Version=v4.0 and platform X86. Following DLL(s) do not match framework/platform
We're able to run unit tests & publish the code coverage to sonarqube in Azure Devops build pipeline till last month. Now we're getting the below error in Visual Studio Test task for .NET code.
Test run will use DLL(s) built for…

Upendar Avireni
- 11
- 2
0
votes
1 answer
Powershell pass multiple test dlls to vstest.console.exe
https://learn.microsoft.com/en-us/visualstudio/test/vstest-console-options?view=vs-2019#general-command-line-options
I can successfully run unit tests by passing file names separated by space.
e.g.
>vstest.console.exe a.dll b.dll
But when I use PS…

user588477
- 165
- 11
0
votes
1 answer
Visual Studio 2019 unit test fails with InvalidProgramException
Has anyone experienced with the below unit test execution error both in Visual Studio IDE 2019 (16.9.3) and command line through vstest.console.exe (16.9.1)?
This happens even after installing the latest .NET 5.0.5 (5.0.202 SDK) following this only…

QHQuach
- 11
- 3