From 2069b38dbd7c4a0a64980aa6517e9282ef5f3d7a Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 25 Apr 2022 02:40:03 -0500 Subject: [PATCH] Added xunit logger and configured pipeline for publishing. --- Jenkinsfile | 6 ++++-- Props.Shop/Adafruit.Tests/Props.Shop.Adafruit.Tests.csproj | 1 + Props.Tests/Props.Tests.csproj | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index efc7aaf..53f13a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,8 @@ pipeline { } stage("Test") { steps { - dotnetTest noRestore: true, project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true + dotnetTest logger: 'xunit', noRestore: true, project: 'Props.Shop/Props.Shop.Tests.sln', unstableIfErrors: true, unstableIfWarnings: true + xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestReports/*.xml', stopProcessingIfError: true)]) } } stage("Publish") { @@ -34,7 +35,8 @@ pipeline { } stage("Test") { steps { - dotnetTest noRestore: true, project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true + dotnetTest logger: 'xunit', noRestore: true, project: 'Props.Tests', unstableIfErrors: true, unstableIfWarnings: true + xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestReports/*.xml', stopProcessingIfError: true)]) } } stage("Publish") { diff --git a/Props.Shop/Adafruit.Tests/Props.Shop.Adafruit.Tests.csproj b/Props.Shop/Adafruit.Tests/Props.Shop.Adafruit.Tests.csproj index b0aae2b..b027450 100644 --- a/Props.Shop/Adafruit.Tests/Props.Shop.Adafruit.Tests.csproj +++ b/Props.Shop/Adafruit.Tests/Props.Shop.Adafruit.Tests.csproj @@ -20,6 +20,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all + diff --git a/Props.Tests/Props.Tests.csproj b/Props.Tests/Props.Tests.csproj index 99e24b5..aace45e 100644 --- a/Props.Tests/Props.Tests.csproj +++ b/Props.Tests/Props.Tests.csproj @@ -18,6 +18,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all +