Questions tagged [vstest]

Visual Studio Test (VSTest.Console.exe) is a test runner developed by Microsoft.

Visual Studio Test (VSTest.Console.exe) is a test runner developed by Microsoft.

It can run automated unit and coded UI tests from a command line, and is used in place of MSTest.exe beginning with Visual Studio 2012.

unit tests are natively supported, but it can also run other 3rd party unit test frameworks (eg. , etc) when configured either as an installed extension or via the /TestAdapterPath path.

See VSTest.Console.exe command-line options for more information.

368 questions
0
votes
2 answers

Removing Standard Output Messages from Console Window

I'm using vstest to execute tests on local. "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe\" "C:\Debug\Solution.dll /Tests:VerifyTest1,VerifyTest2 /Logger:trx" And over…
vivek singh
  • 121
  • 1
  • 18
0
votes
1 answer

VSTest.Console error: Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime

I get the following error when I manually run my unit test project from the command line using VSTest.Console, or when I run it as a build step from teamcity (also using vstest): Mixed mode assembly is built against version ‘v2.0.50727′ of the…
jkokorian
  • 2,905
  • 7
  • 32
  • 47
0
votes
1 answer

OpenCover- Open cover saying missing PDBs when working with vstest.console.ex in tfs build definiton

I am trying to integrate Opencover with TFS2013 for custom code coverage. I am passing the parameters necessary for running Open Cover via build definiton nad invoking OC using a InvokeProcess activity in the build process template. I am following…
Abdul Hameed
  • 1,025
  • 12
  • 27
0
votes
0 answers

Getting InvalidProgramException on MSTest using vstest.console.exe

I'm getting this weird InvalidProgramException when trying to call a static method from a static class that's in an external assembly. I've already tried bringing the routine within the same assembly, but the result is the same. Any ideas?
Pedro Luz
  • 973
  • 5
  • 14
0
votes
1 answer

Sonar-Runner 2.4 can't find code coverage reports

I'm running SonarQube 5.2 with SonarRunner v2.4 (MSBuild) and am having issues getting SonarRunner to pick up the code coverage reports. I have VS Test which drops the TestResults folder within the source directory. The TRX file is within the…
kaz3320
  • 19
  • 1
  • 6
0
votes
1 answer

Publishing unit test results from TFS2013 Build to SonarQube

I have created a TFS2013 Build Definition using the template TfvcTemplate.12.xaml I have specified a test run using VSTestRunner and enabled code coverage. I am integrating this build with sonar analysis by specifying pre-build and post-test…
Ramya
  • 21
  • 3
0
votes
1 answer

Changing order of Coded UI test in Visual Studio 2013

I've been tasked with making our coded UI testing come out with passing tests (tests already created, just needed to adjust program code), but I'm having an interesting problem arise with some consistently failed tests. When I test these "failed"…
jcameron47
  • 65
  • 11
0
votes
2 answers

How to get the test results trx file(generated from vstest) from TFS Api

I need to query and get the test results trx file from TFS 2013 so that I can modify that and use it for report generation. I couldn't find any method in IBuildServer that allows me to query the trx file. Is it posible to read the file using…
Rasika
  • 312
  • 1
  • 7
  • 19
0
votes
1 answer

UI test with teststack framework jenkins integration

On my project we have some ui test made with teststack white in VS2012. These tests need to control the mouse. I have a bat file that if i run it manually the tests run with mstest or vstest.console but when i run them from jenkins it says that…
George
  • 11
  • 1
0
votes
1 answer

SonarQube server shows zero unit tests

I’m integrating SonarQube in our build system – I installed sonar-runner-2.4 on our build agents and added the sonar-runner.properties for each solution (to the solution’s folder on TFS). When running the build I’m executing the sonar-runner after…
Guy Salton
  • 617
  • 1
  • 5
  • 6
0
votes
2 answers

VSTest console doesn't work from another base directory

I have a Windows 2012 Server with TFS2015 and VS2015. Somehow my tfs build doesn't generate unit-test results. I pin pointed the problem. I logged on the server and execute the following command in a "MSBuild Command Prompt for VS2015" (exactly the…
Tom Kuijsten
  • 337
  • 4
  • 16
0
votes
1 answer

SQL Server 2014 Unit Test - Deployment to Build Server

For the first time I am trying to use a Visual Studio 2013 SQL Server Database Project with a test project. It seems to work fine on my local machine but errors when run on the build server, using TFS2013.4, due to an incorrect path: Database…
0
votes
0 answers

TypeInitializationException for failing tests in TeamCity using VSTest.Console Runner

I have got numerous tests failing on 'TypeInitializationException' exceptions. All these tests pass with MSTest In visual-studio and pass in visual studio online. However using teamcity these are failing. The runner is VSTest.Console since MSTest…
sponturious
  • 131
  • 1
  • 9
0
votes
0 answers

not able to Trigger dll located at another machine from my server

On my Jenkin server, i mapped a driver of my test machine project folder (where my unit test.dll exists). Now i wanted to trigger from server >>vstest.console.exe Z:\unit test.dll it throws warning as below.
0
votes
0 answers

Unble to rename Test results (.trx) generated from VSTest.console.exe

I am trying to set name and file location for my Test results (.trx) generated from VSTest.Console.exe from console line but looks like its not working. If I run below command, "c:\Program Files (x86)\Microsoft Visual Studio…
rajcool111
  • 657
  • 4
  • 14
  • 36
1 2 3
24
25