diff options
-rw-r--r-- | .coveragerc | 2 | ||||
-rwxr-xr-x | docker-entry.sh | 1 | ||||
-rw-r--r-- | tox.ini | 7 |
3 files changed, 8 insertions, 2 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..9be06b9 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = redis diff --git a/docker-entry.sh b/docker-entry.sh index efcd205..f1c7baa 100755 --- a/docker-entry.sh +++ b/docker-entry.sh @@ -10,6 +10,7 @@ echo "Testing against Redis Server: ${REDIS_MASTER}" # use the wait-for-it util to ensure the server is running before invoking Tox util/wait-for-it.sh ${REDIS_MASTER} -- tox -- --redis-url=redis://"${REDIS_MASTER}"/9 +tox -e covreport # if the TRAVIS env var is defined, invoke "codecov" if [ ! -z ${TRAVIS-} ]; then @@ -1,5 +1,5 @@ [pytest] -addopts = -s --cov-report=term-missing --cov redis +addopts = -s [tox] minversion = 2.4 @@ -10,7 +10,6 @@ deps = coverage mock pytest >= 2.7.0 - pytest-cov >= 2.10.0 extras = hiredis: hiredis commands = @@ -48,3 +47,7 @@ passenv = TRAVIS TRAVIS_* VCS_* + +[testenv:covreport] +deps = coverage +commands = coverage report |