build: fixing typos in scripts

main
D. Moonfire 7 months ago
parent 83936c750c
commit 2ea1905fac

@ -5,7 +5,6 @@ log() { echo "️🚢 $(basename $0): $@"; }
# Move into the root folder and make sure we're set up.
cd $(dirname $0)/..
./scripts/setup.sh || exit 1
# Verify the input.

@ -1,12 +1,12 @@
#!/usr/bin/env sh
cd $(dirname $0)/..
# Set up logging.
log() { echo "️🧪 $(basename $0): $@"; }
if [ -f ./tests/*/*.csproj ]
then
./scripts/setup.sh || exit 1
# Move into the root folder and make sure we're set up.
cd $(dirname $0)/..
./scripts/setup.sh || exit 1
dotnet test --test-adapter-path:. --logger:"junit;LogFilePath=../artifacts/{assembly}-test-result.xml;MethodFormat=Default;FailureBodyFormat=Verbose" --collect:"XPlat Code Coverage"
dotnet tool run reportgenerator -reports:tests/*/TestResults/*/coverage.cobertura.xml -targetdir:./coverage "-reporttypes:Cobertura;TextSummary"
grep "Line coverage" coverage/Summary.txt
fi
dotnet test --test-adapter-path:. --logger:"junit;LogFilePath=../artifacts/{assembly}-test-result.xml;MethodFormat=Default;FailureBodyFormat=Verbose" --collect:"XPlat Code Coverage"
dotnet tool run reportgenerator -reports:tests/*/TestResults/*/coverage.cobertura.xml -targetdir:./coverage "-reporttypes:Cobertura;TextSummary"
grep "Line coverage" coverage/Summary.txt

Loading…
Cancel
Save