From 4bc5375bc7ba4619a6b20a29abe7ad8b192e08e5 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 4 Dec 2022 09:03:21 +0000 Subject: [PATCH] Added test result publishing. --- DotNetResxUtils.Tests/DotNetResxUtils.Tests.csproj | 1 + Jenkinsfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DotNetResxUtils.Tests/DotNetResxUtils.Tests.csproj b/DotNetResxUtils.Tests/DotNetResxUtils.Tests.csproj index d9852d1..0e9952c 100644 --- a/DotNetResxUtils.Tests/DotNetResxUtils.Tests.csproj +++ b/DotNetResxUtils.Tests/DotNetResxUtils.Tests.csproj @@ -18,6 +18,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all + diff --git a/Jenkinsfile b/Jenkinsfile index 3dab864..d7323f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,8 @@ pipeline { } stage("Test") { 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") {