ci: changing how testing fails
This commit is contained in:
parent
706ba881b7
commit
1d3ebc0a5d
9
Justfile
9
Justfile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue