Skip to content

Commit

Permalink
Exit with exit code of test run
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Oct 14, 2021
1 parent 1d2fc3d commit fa04572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tool/run_coverage_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ dart \
--enable-asserts \
test/kt_dart_test.dart

TEST_EXIT_CODE=$?
echo "$TEST_EXIT_CODE"

pub global run coverage:format_coverage \
--lcov \
--in=out/coverage/coverage.json \
Expand All @@ -32,3 +35,5 @@ if type genhtml >/dev/null 2>&1; then
else
echo "genhtml not installed, can't generate html coverage output"
fi

exit $TEST_EXIT_CODE

0 comments on commit fa04572

Please sign in to comment.