Skip to content

Commit

Permalink
fix code coverage report for ros2 python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mm318 authored and AAlon committed Oct 5, 2019
1 parent 7ad2d9a commit 63a100e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ros2_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -z "${NO_TEST}" ]; then
fi

set +e
colcon test
colcon test --pytest-args --cov=. --cov-report=xml
set -e
colcon test-result --all --verbose

Expand All @@ -50,8 +50,7 @@ if [ -z "${NO_TEST}" ]; then
;;
"python")
# this doesn't actually support multiple packages
pytest --cov=src/${REPO_NAME}/${PACKAGE_NAMES} --cov-report=xml
cp coverage.xml /shared/coverage.info
cp src/${REPO_NAME}/${PACKAGE_NAMES}/coverage.xml /shared/coverage.info
;;
esac
fi

0 comments on commit 63a100e

Please sign in to comment.