We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4586c63 commit 5a7948bCopy full SHA for 5a7948b
build_and_test.sh
@@ -29,14 +29,14 @@ do
29
done
30
31
echo "Testing solution"
32
-has_errors=false
+has_failures=false
33
test_projects=( $( ls test/**/*Tests.csproj ) )
34
for test_project in "${test_projects[@]}"
35
do
36
base_name=$(basename ${test_project%.*})
37
- dotnet test $test_project -c Release --no-build --logger "trx;LogFilePrefix=$base_name" --results-directory artifacts/test-results -- NUnit.ConsoleOut=0 || has_errors=true
+ dotnet test $test_project -c Release --no-build --logger "trx;LogFilePrefix=$base_name" --results-directory artifacts/test-results -- NUnit.ConsoleOut=0 || has_failures=true
38
39
40
-if [ "$has_errors" = true ]; then
+if [ "$has_failures" = true ]; then
41
exit 1
42
fi
0 commit comments