dotnet-test

'dotnet test' is not finding nunit tests in gitlab-runner pipeline

余生颓废 提交于 2020-01-15 09:26:08
问题 I have a solution with a NUnit testproject ( Foo.Test ). +-- src | +-- Foo.Gui | +-- Foo.Test <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netcoreapp3.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> <ItemGroup> <Compile Remove="TestResults\**" /> <EmbeddedResource Remove="TestResults\**" /> <None Remove="TestResults\**" /> </ItemGroup> <ItemGroup> <PackageReference Include="GitVersionTask" Version="5.1.2"> <PrivateAssets>all</PrivateAssets>

dotnet test not creating test results folder

核能气质少年 提交于 2019-12-05 16:57:50
问题 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 --results-directory "MyProject\TestResults" --verbosity minimal And here is the output when run from the command line. So it all appears to work correctly, yet no test results / test output is created. 回答1: To output the test results from dotnet test, you can try pass -xml /some/path/out.xml or use the work

dotnet test not creating test results folder

你离开我真会死。 提交于 2019-12-05 03:14:05
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 --results-directory "MyProject\TestResults" --verbosity minimal And here is the output when run from the command line. So it all appears to work correctly, yet no test results / test output is created. Andy Li-MSFT To output the test results from dotnet test, you can try pass -xml /some/path/out.xml or use the work parameter, like this: dotnet test --work:"mypath/myresult.xml" . See below threads for details