Add coverage check

This commit is contained in:
nolash 2021-07-17 07:39:55 +02:00
parent 41ac66f9d2
commit 388910a4ac
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 24 additions and 0 deletions

9
.coveragerc Normal file
View File

@ -0,0 +1,9 @@
[run]
omit =
.venv/*
scripts/*
tests/*
source =
chainqueue/adapters
chainqueue
chaind_eth

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ dist/
build/
*.egg-info
*.sqlite
.coverage

13
run_coverage.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
#set -e
#set -x
#export PYTHONPATH=${PYTHONPATH:.}
#for f in `ls tests/*.py`; do
# python $f
#done
#set +x
#set +e
COVERAGE_MINIMUM=${COVERAGE_MINIMUM:-90}
coverage run -m unittest tests/test_*.py
coverage report -m --fail-under $COVERAGE_MINIMUM

View File

@ -1,3 +1,4 @@
eth_tester==0.5.0b3
py-evm==0.3.0a20
rlp==2.0.1
coverage==5.5