dotnet-test Questions

4

This article describes setting the VS Code settings to point the debugging target at the build output of the unit test project. I have therefore set mine like this: { "explorer.confirmDragAnd...
Hankypanky asked 24/5, 2019 at 9:53

2

Say I have a test: [Theory] [InlineData("one")] [InlineData("two")] public void ShouldSelectSingleTheoryFromDotnetTest(string s) { Assert.True(true); } I want to execute...
Konyn asked 25/1, 2021 at 12:41

2

I have a .Net solution with two dotnet core class libraries and its associated unit test projects in it. When I run dotnet test **\*.Tests.csproj --collect "Code Coverage" command then it generate...
Gelasias asked 23/4, 2019 at 12:58

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

1

I have a .NET Core application which has got one .NET Standard 2.1 project in it. I am using Coverlet to get the code coverage in Cobertura format. I am using "coverlet.msbuild" nuget pac...
Escape asked 20/10, 2020 at 13:5

4

Solved

We have a project with a dependency on a custom NuGet feed (also hosted in VSTS). I'm trying to put together a new phase to generate code coverage reports, as in this blog post. My new phase looks...

3

I am writing a script to build and test projects in a repository. For now I'm using the PowerShell command Get-ChildItem -Path test -Filter *.csproj -Recurse | ForEach-Object { dotnet test $_.FullN...
Muss asked 19/11, 2019 at 19:50

2

If you run tests using Azure Pipelines you would get some cool results on the checks tabs. Is there any way to do the same from Github Actions so we don't have to go through the console output? ...

1

Solved

First, some context: I have a Visual Studio solution containing several production class libraries and nine unit test projects. All the projects are targeting .NET 5. I am running .NET 5.0.401. All...
Patella asked 28/9, 2021 at 21:9

1

Solved

I am trying to rerun failed tests using dotnet test command. I want to pass a list of failed tests from a file created during test run. I can't seem to get the '&' operator syntax right for the...
Caravel asked 4/8, 2021 at 11:51

1

Solved

I have a solution with a NUnit testproject (Foo.Test). +-- src | +-- Foo.Gui | +-- Foo.Test <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netcor...
Trichomoniasis asked 22/11, 2019 at 11:11

1

My project structure is the following: . ├── Application ├── Application.Core ├── Application.Domain ├── Application.Tests ├── Application.IntegrationTests └── README.md And the command to run m...
Interpretation asked 2/11, 2019 at 8:1

3

I'm searching a way to debug my tests (mstest) .Net Core 2.0 in VSCode? I didn't find nothing. Thanks!
Antiproton asked 21/9, 2017 at 20:34

2

Solved

As part of our ASP.NET Core 2.0 build process I have added a dotnet test command which I have added as a Windows batch file. Here is my command. dotnet test "MyProject.csproj" --no-restore --res...
Odyl asked 20/3, 2018 at 17:16
1

© 2022 - 2025 — McMap. All rights reserved.