build: fixing typos in scripts

This commit is contained in:
D. Moonfire 2022-11-02 19:42:20 -05:00
parent 83936c750c
commit 2ea1905fac
2 changed files with 8 additions and 9 deletions

View file

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

View file

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