Questions tagged [vstest.console.exe]

102 questions
0
votes
1 answer

How to run a BOOST test using vstest.console.exe?

I am using BOOST test to test my C++ code. The tests typically look like below and the test project is built as a exe. In order to collect Code Coverage information, I am hoping to be able to run my tests using vstest.console.exe so I can try using…
0
votes
1 answer

Getting "StackExchange.Redis.RedisConnectionException" while running tests with runsettings

I am facing an issue while trying to run the test using runsettings file. We have one redis cache with SSL enabled which we are trying to access from our tests. StackExchange.Redis.RedisConnectionException: No connection is available to service this…
0
votes
1 answer

Vstest.console in powershell and Action Based on results

I'm trying to run some functional unit tests using vstest.console in PowerShell, and if any tests fails, I would perform a certain action (in this case, it would be rolling back an installation). How do I go about doing that. Here is the current…
0
votes
0 answers

SpecRun / VSTest - What is internal structure of directory paths

I'm new to implementing SpecRun/SpecFlow. I'm really struggling with runsettings, profiles, and the directory paths. The end result of all this is to be running our webtests in an Azure environment, hopefully posting results into TFS. But I cannot…
donvnielsen
  • 195
  • 1
  • 9
0
votes
0 answers

vstest.console.exe --testcasefilter:"FullyQualifiedName=Namespace.classname is not working

I'm a newbie in vstest and I'm trying to run the specflow feature file from command line. I've used the below command but's it's not working for me. Below is the namespace and class name: namespace PE.Feature.Preconditions.DeleteData { public…
0
votes
0 answers

How to get the number of tests without running them and with minimum text parsing using vstest.console.exe?

I have the following command line working: dotnet vstest ...\Platform.UnitTests.dll -lt And it does show the available tests: Microsoft (R) Test Execution Command Line Tool Version 15.9.0 Copyright (c) Microsoft Corporation. All rights…
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
0 answers

Why aren't css and js files loading when SpecFlow-Selenium tests are run using vstest.console.exe from the command prompt?

I have some tests for a web application which were automated using SpecFlow and Selenium WebDriver. When I run the test from Visual Studio's Test Explorer, the test runs fine. I'm trying to set up a CI pipeline on Jenkins and in order to run the…
0
votes
2 answers

Extract code coverage report from .trx file

I have a c# windows application developed in .net framework 4.6. I have run the below command using vstest.console.exe to generate .trx file which has information about code coverage and testcases. Bamboo's MSTest Parser is able to read the trx file…
CrazyCoder
  • 2,194
  • 10
  • 44
  • 91
0
votes
0 answers

TFS vNext build Test Impact Analysis- Impacted unit tests are not running at all

I have a VB Solution having 1 project and corresponding unit test project in it. TIA is enabled. But during code check-in, impacted unit tests are not getting executed. If I add any new method and then write the corresponding unit test, then TIA is…
Piyush
  • 5,145
  • 16
  • 49
  • 71
0
votes
1 answer

parser for vstest.console in Bamboo

We are having to use the command configuration (to be able to specify the runsettings file that I want to use at the time of running the job) for vstest.console. But now it does not create the results within bamboo. like the vstest.console bamboo…
Greg P
  • 772
  • 2
  • 10
  • 23
0
votes
0 answers

Pass std::vector from managed VS test project to managed Dll

I am writing a unit test using managed VS Test project. I have a managed (CLI/C++) code as shown below namespace ClassLibrary1 { public ref class Class1 { std::vector* vec1; public: Class1() { …
0
votes
0 answers

TFS 2017 Test plan: Set test cases as Not applicable or Blocked from trx result file

After execution automated tests in VStest task, vstest.exe generate trx result file. This trx contains only 3 types of outcome: Passed, Failed and Skipped. This types of outcome publish into TFS test plan. Is there any possibility to add "Not…
Andrew
  • 1
  • 2
0
votes
0 answers

c# vstest.console.exe is taking too much time to run unit tests

I have big project written in c# wpf, also I have continuous integration in jenkins that build the project and run unit test after each commit. The build is incremental. I have problem that the CI is so slow because of the unit test Time taken to…
Zakk
  • 758
  • 3
  • 11
  • 20
0
votes
2 answers

No test is available error while running coded UI test on VSTS deployment group

We have configured release definition to run coded UI tests on VSTS deployment group. Unable to launch the tests, error details: Windows Error Reporting DontShowUI not set, if the windows error dialog pops-up in the middle of UI test execution than…
0
votes
1 answer

Running Unit Tests fails with VS2017 (vstest.console.exe) because the Windows OS is different

I'm trying to run some unit tests from the command line using Visual Studio 2017 and the vstest.console.exe (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe), The…