ci: changing how testing fails
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
D. Moonfire 2023-08-03 07:53:41 -05:00
parent 706ba881b7
commit 1d3ebc0a5d

View file

@ -31,14 +31,17 @@ test-packages: build
--logger:"junit;LogFilePath=../artifacts/{assembly}-test-result.xml;MethodFormat=Default;FailureBodyFormat=Verbose" \
--collect:"XPlat Code Coverage" \
/p:CollectCoverage=true \
-v:q --nologo || exit 1
-v:q --nologo
dotnet tool run reportgenerator \
-reports:tests/*/TestResults/*/coverage.cobertura.xml \
-targetdir:./coverage \
"-reporttypes:Cobertura;TextSummary"
"-reporttypes:Cobertura;TextSummary" || true
if [ -f coverage/Summary.txt ];then grep "Line coverage" coverage/Summary.txt; fi
if [ -f coverage/Summary.txt ]
then
grep "Line coverage" coverage/Summary.txt || true
fi
# Restores all the tools and NuGet packages.
restore: restore-tools restore-packages