vstest Questions

4

Solved

I'm trying to set up a C# project with the latest version of Visual Studio, 2022; this is with .Net 6 on Windows 10. It's a simple console program, and I've set up the project and a corresponding u...

2

I am trying create a nunit test results xml file and attach it to a test run of my build in dev ops. I have the NUnit3TestAdapter.3.13.0 package installed in my test project and reference this in c...
Inherent asked 27/7, 2021 at 9:23

2

According to the official TestCase documentation, you can use a "not contains" (!~) filter in a TestCase filter. I'm trying to use this filter in an Azure Devops pipeline, but the filter ...
Lauree asked 3/7, 2020 at 15:28

9

I am attempting to move a solution from TFS 2012 to TFS 2018 SP2RC2 but I can't get the unit tests to run correctly. All projects have been re-targeted to 4.7.1 and are built as x86 platform. We ha...
Lineman asked 7/5, 2018 at 22:20

0

recently without any direct changes to tests solution this error started occurring during execution of VSTEST@2 task on my azure pipeline. ##[warning]DiscoveryMessage : Failed to load extensions fr...
Apotheosize asked 17/1, 2023 at 8:40

2

Solved

I'm registering many types to my Container, implementing all sorts of interfaces. In some programmatic manner, I want to have a unit test that will check all resolving are successful, meaning there...
Cyclotron asked 16/7, 2017 at 10:52

2

I am using VS2015 with Update 3. I have a simple hello world unit test project where I am trying to get the shimContext , below is the code snippet. I am getting the exception at shimContext to cr...
Punner asked 27/9, 2018 at 8:29

1

This is the error I get: ========== Starting test run ========== NUnit Adapter 4.2.0.0: Test execution started Running selected tests in C:\Users\itaib\source\repos\TestHostCrashTest\TestHostCrashT...
Bader asked 6/1, 2022 at 7:53

4

Solved

I have tried hundreds of times but I am still unable to find that codeCoverage file generated in VSTest task. See the following code. I simply want to publish the Code Coverage report to the pipe...
Galacto asked 24/7, 2019 at 7:46

0

I have a suite of automation test using selenium that run using SpecFlow. I run the tests through a VSTest task in Azure DevOps Pipelines and I want to populate the Owner field. I checked SpecFlow...
Charil asked 14/12, 2021 at 19:38

2

Edit: Below is the former question originally posted with the title xunit show ITestOutputHelper output when run in the console After investigation (see comments), the question is still very ...
Recapitulation asked 7/4, 2020 at 18:48

4

Solved

My VSTS - "Visual Studio Test" task can't find any tests of the .NET Core assembly. But in VS 2017 and in the console, it works well. VSTS Task's logs: My run settings file:
Chloramine asked 18/5, 2018 at 10:54

1

Solved

I have xUnit tests which run fine locally but do not get run on Azure DevOps. The assembly under test is a .NET 5.0 assembly as is the test assembly. Examining the log file from the VsTest task, I ...
Cingulum asked 27/1, 2021 at 22:23

2

Is there any difference between vstest.console.exe and dotnet test commands to run unit test from a terminal? Like when should you use one over the other. Is "vstest.console.exe" meant for only .Ne...
Hartsell asked 16/8, 2019 at 16:22

4

I am setting CI for .Net project using Jenkins. I used MSTest Plugin and VStestrunner plugin to run test. Now I have .trx file and .Coverage file I am facing problem in displaying code coverage ...
Subterranean asked 13/5, 2015 at 12:50

9

Solved

I've just installed Visual Studio 2017. I have a project using NUnit for the test cases. Ctrl + R - T no longer runs the tests, and the Test Explorer no longer finds any test cases marked with the ...

2

Solved

I have been trying to get SonarQube working with a simple dot net app. I have had some success getting it up and running but code coverage is not working. It looks like many other people have face...
Saltigrade asked 4/8, 2015 at 7:52

3

Solved

I have a solution with 2 projects, one of which is a test project. Both projects target dotnet core 2.2: <TargetFramework>netcoreapp2.2</TargetFramework> I am using Visual Studio 201...
Maraud asked 29/5, 2019 at 5:47

3

Solved

Is there a way to set the location of where the .coverage file would be located if we set /Enablecodecoverage in vstest.console.exe? I did not see an option in the command line call itself. Is it ...
Dauntless asked 30/1, 2017 at 18:29

2

Solved

I have a vsts build definition in which I try to set the PATH environment variable using PowerShell (and before I tried cmd) task, so that in a later vsTest task, the tests could run an exe from th...

1

With MSTest.exe, you can specify a total timeout for a test run by setting the /TestSettings/Execution/Timeouts/@runTimeout attribute in a .testsettings file. With VSTest.Console.exe, the .testset...
Kalliekallista asked 30/10, 2014 at 21:38

1

Solved

Currently I'm trying to set up a new pipeline for our solution and can't get the Visual Studio Test to find the correct set of tests within my solution. Either it picks a DLL that doesn't contain a...
Humoresque asked 16/5, 2019 at 10:8

0

Recently started getting the following warnings from my VsTest task Version 2 (Version 1 does NOT produce the warnings) after the build machine completes a (TFS2017) build: Unable to get feature f...
Encrimson asked 15/5, 2019 at 19:28

1

Solved

We have a large test set running (based on NUnit) within Azure DevOps. Recently we enabled the "Rerun failed tests" option within the Visual Studio Test task. At first, this didn't work due to a bu...
Dictatorial asked 20/2, 2019 at 14:12

1

Solved

I am using vstest TestCaseFilter for running selective unit tests in VS 2013. My goal is to to run all tests with categories that do not contain a certain string. From what I have read so far (here...
Murage asked 8/6, 2015 at 11:40

© 2022 - 2025 — McMap. All rights reserved.