Added test result publishing.
Some checks failed
RealYHD/dotnetresxutils/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2022-12-04 09:03:21 +00:00
parent 2fdf476a85
commit 4bc5375bc7
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
<PackageReference Include="XunitXml.TestLogger" Version="3.0.70" />
</ItemGroup> </ItemGroup>
</Project> </Project>

3
Jenkinsfile vendored
View File

@ -11,7 +11,8 @@ pipeline {
} }
stage("Test") { stage("Test") {
steps { steps {
sh "dotnet test --no-restore DotNetResxUtils.Tests" sh "dotnet test --logger xunit --no-restore DotNetResxUtils.Tests"
xunit([xUnitDotNet(excludesPattern: '', pattern: '*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
} }
} }
stage("Publish") { stage("Publish") {