Questions tagged [vstest.console.exe]
102 questions
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…

ZekiraDrake
- 155
- 1
- 2
- 10
0
votes
1 answer
vstest with TFS build: System.Runtime.Remoting.RemotingException: 'Object '/XXX.rem' has been disconnected or does not exist at the server
I have a x64 .NET 4.5.2 C# solution with unit tests.
Unit tests are successfully running on my dev machine, but when running on TFS build with following command:
[command]"D:\Program Files (x86)\Microsoft Visual Studio…

Mugen
- 8,301
- 10
- 62
- 140
0
votes
1 answer
VS Web Tests (MSTest) - How to set "One run per datasource row" when running from vstest.console
I use the "One run per data source row" setting in Visual Studio:
As the dialog says, this is not saved.
How do I provide the setting to vstest.console.exe?
Edit: I think there used to be a Web Tests tab in the Test Settings Editor where I could…

Iain
- 1,797
- 1
- 20
- 38
0
votes
1 answer
Jenkins, vstest.console.exe, and PowerShell
Problem
This is a bit of a two fold problem.
I am working on a Job that runs unit tests found within a target project. I have two variants that I am working with and I am trying to get one of them to work properly.
Variant A
I am using the…

Brandon
- 731
- 2
- 12
- 29
0
votes
2 answers
How do I make visual studio online fail a build when visual studio test step does not discover any tests
Scenario
Visual Studio Online build definition.
Using a Visual Studio Test - Test Assemblies step to run tests in a specific dll.
The tests in this dll are more like build steps (highly customized builders), than tests.
The test step has "Continue…

Marjan Venema
- 19,136
- 6
- 65
- 79
0
votes
1 answer
VSTest - DeploymentItem defined in testsettings file is not being deployed to TestResults folder
I have a testsettings file with deployment items defined in it that deploys my files as I expect when I use it with MSTest. However, when I use the same testsettings file with vstest.console.exe the items do not get deployed to the TestResults…

Beeo
- 71
- 3
0
votes
1 answer
TFS 2015 Build: Unable to determine the location of vstest.console.exe
Setup
I installed TFS 2015 with Update 4 and Visual Studio 2013 Professional with Update 5 on a server. I then installed a TFS build agent (version 1.95.4) on the same server.
I noticed that the build agent's capabilities included MSBuild and…

Brett C
- 9
- 1
- 4
0
votes
0 answers
Coverage report says zero coverage on C#.Net Test code (For Nunit test)
I am trying to get the code coverage for the C# test project(Nunit test case) Using OpenCover for sonarqube analysis. I ran the Following Executing cmd in command prompt(from the C# project solution folder & From C# project folder) but always i am…

user7014262
- 135
- 12
0
votes
1 answer
Exclude MSTest tests from specific classes in TeamCity steps
Because you can't set a Test Category on a Test Class with MSTest, I've opted to do something similar in the name, postfixing test classes with ...IntegrationTests whenever they contain slow running tests.
In the Visual Studio Test Explorer I can…

Jeroen
- 60,696
- 40
- 206
- 339
0
votes
0 answers
coveragexml consist of special character and not importing coverage data in Sonar Dashboard
I am creating coverage data from vstest.console.exe and the coverage file is in coveragexml format. Other projects are able to import coverage data but this file is with some special characters and not importing the data into Sonar Dashboard.

Abhijeet Kamble
- 3,131
- 2
- 30
- 36
0
votes
1 answer
Executing VSTest.Console.exe test via Powershell Invoke-Command
So I'm trying to kick off test runs via VSTest.Console.exe using Powershell's Invoke-Command. I'm pretty new to powershell, but the script looks like this:
$secpasswd = ConvertTo-SecureString “P@ssword01” -AsPlainText -Force
$credentials =…

Ben Power
- 1,786
- 5
- 27
- 35
-1
votes
1 answer
How to provide multiple test categories in vstest task in azure pipelines
My project has some Nunit tests with certain tags called categories.
For example: 32 bit app tests have x32 as tag and 64 bit app tests have x64 as tag.
Now using vstest task i am able to run tests for one category like this:
TestCategory=x32
when…

sai kartheek challa
- 13
- 1
- 5