From 2ea1905facdd80bd45dc0824b592b2f71dd2bf30 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Wed, 2 Nov 2022 19:42:20 -0500 Subject: [PATCH] build: fixing typos in scripts --- scripts/release.sh | 1 - scripts/test.sh | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 5cb4879..ce905b7 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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. diff --git a/scripts/test.sh b/scripts/test.sh index 7587fb1..b3dd8dd 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,12 +1,12 @@ #!/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)/.. +./scripts/setup.sh || exit 1 -if [ -f ./tests/*/*.csproj ] -then - ./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