Add test coverage support
Prints out results on console and puts HTML report in `coverage-html`. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
81707ef1ad
commit
aab6df6ba4
5 changed files with 8 additions and 1 deletions
|
|
@ -19,8 +19,9 @@ for version in $DOCKER_VERSIONS; do
|
|||
--rm \
|
||||
--privileged \
|
||||
--volume="/var/lib/docker" \
|
||||
--volume="${COVERAGE_DIR:-$(pwd)/coverage-html}:/code/coverage-html" \
|
||||
-e "DOCKER_VERSION=$version" \
|
||||
--entrypoint="script/dind" \
|
||||
"$TAG" \
|
||||
script/wrapdocker nosetests "$@"
|
||||
script/wrapdocker nosetests --with-coverage --cover-branches --cover-package=compose --cover-erase --cover-html-dir=coverage-html --cover-html "$@"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue