Questions tagged [vstest.console]

24 questions
11
votes
3 answers

vstest.console.exe with ClassName as /testcasefilter

I am looking for executing the unit test by ClassName using vstes.console.exe, any help I tried like /TestCaseFilter:"ClassName=ProgressTests" but that throws this error: Error: No tests matched the filter because it contains one or…
gsgill76
  • 339
  • 1
  • 4
  • 14
8
votes
1 answer

VSTest.Console when run with /Logger:Console does not print debug output from test method

I am using Visual Studio 2015. I am trying to print some statements just for tracking a very long running test. When using VSTest.Console with /Logger:trx the debug output (whether we use Console.WriteLine(), Debug.Writeline() or Trace.WriteLine())…
shivesh suman
  • 1,511
  • 18
  • 26
6
votes
2 answers

Can vstest.console filter tests by all matched traits?

As documented on this MSDN article, vstest.consolecan filter tests to run by traits. For example, a sample vstest.console command might look as follows: "C:\Program Files (x86)\Microsoft Visual Studio…
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
5
votes
4 answers

How to install vstest.console.exe offline

I am supposed to do an offline installation of vstest.console.exe in the folder path as follows: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow I have tried using offline packages such as…
Gluon
  • 81
  • 1
  • 1
  • 9
4
votes
1 answer

Coded UI Automated Test Case through Octopus Tentacle

I am trying to run my Automated test cases deployed on a virtual machine and trying to trigger it with the help of Octopus Deployment tool. I installed test agent and Octopus Tentacle on my machine. Octopus is triggering the DLL's for Automated test…
3
votes
0 answers

Change order of tests using VSTest

We've been running our tests created with SpecFlow using MSTest and the order of tests was determined by test id. So just starting test name with 1001_, 1002_ etc you could control execution order. Having an issue running same order with VStest. As…
Razkar
  • 539
  • 5
  • 26
3
votes
0 answers

Filter uncategorized tests in vstest.console.exe

I have a visual studio test assembly. There are several test methods of which a few methods have TestCategoryAttribute on them and others don't. I want to filter out all the methods that do not contain the attribute from getting executed, i.e,…
Kannan D
  • 467
  • 1
  • 4
  • 15
2
votes
0 answers

Not working with vstest.console.exe when .runsettings file is specified - MS Test

I am using MSTest project to automate my system. The test project work fine. But I need to run the test project in my production with out installing visual studio. So that I am using VSTest.Console.exe command-line. My Login method as below …
Krishan
  • 169
  • 2
  • 12
2
votes
1 answer

vstest.console.exe ListTests with FullyQualifiedName

/ListTests option of vstest is returning a list of test method names inside a dll. Is there a way to return a list of FullyQualifiedNames? So instead of getting TestMethodName I would like to receive NamespaceName.ClassName.TestMethodName.
Cirate
  • 151
  • 1
  • 8
1
vote
0 answers

How can I run 'dotnet test' on a solution file with both UWP and .NET Core / .NET 6 test projects?

I have a solution that contains several .NET Standard, .NET Core, .NET 6, and finally UWP projects in it. Additionally, I have test projects for everything, including the UWP projects. My problem is, is that I cannot run the dotnet test, or even the…
Aron
  • 372
  • 5
  • 18
1
vote
1 answer

CoverletOutputFormat vstest.console

I need to set up Coveralls. Before this I am trying to set up /p:CoverletOutputFormat=lcov with vstest.console. So I am successfully using dotnet test --results-directory "./testresults" -l trx -c Release /p:CollectCoverage=true…
1
vote
1 answer

VS Test fail in Azure DevOps while all tests are sucessed

After we upgrade to VS2019 and use VS test task v2.0 in Azure DevOps, our test task keeps failing with the following message: Our Visual Studio 2019 is version: 16.2.5 The task version is: Visual Studio Test 2.157.3 What's wrong with the VS test…
Max
  • 175
  • 1
  • 12
1
vote
1 answer

Visual Studio test task fails in pipeline but succeeds in test console

I am using Visual studio test task to run all my tests as a part of my build definition. The options that I have enabled are as attached below: Now, the problem here is that, some of my tests always fail when I run them from the build pipleine ,…
1
vote
0 answers

SpecFlow. MSTest(VSTest) not finding tests

I have started a new UnitTets project in VS2017 with 2.3 version of specflow. I use MSTest and sometimes VSTest for running tests and was successful in my older projects. I can run my tests from test explorer in this new project. But whenever I use…
Razkar
  • 539
  • 5
  • 26
1
vote
0 answers

VSTS "Run Functional Tests" TestCategory Not Working With Specrun Tests

I am trying to run a subset of our specrun tests as part of our VSTS release process. It works fine with the "Visual Studio Test" step with TestCategory=SmokeTest: It finds 47 tests and executes them. When I use the same configuration using the…
brushwood
  • 115
  • 3
  • 9
1
2