Add coverage check
This commit is contained in:
parent
41ac66f9d2
commit
388910a4ac
9
.coveragerc
Normal file
9
.coveragerc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[run]
|
||||||
|
omit =
|
||||||
|
.venv/*
|
||||||
|
scripts/*
|
||||||
|
tests/*
|
||||||
|
source =
|
||||||
|
chainqueue/adapters
|
||||||
|
chainqueue
|
||||||
|
chaind_eth
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ dist/
|
|||||||
build/
|
build/
|
||||||
*.egg-info
|
*.egg-info
|
||||||
*.sqlite
|
*.sqlite
|
||||||
|
.coverage
|
||||||
|
13
run_coverage.sh
Normal file
13
run_coverage.sh
Normal 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
|
@ -1,3 +1,4 @@
|
|||||||
eth_tester==0.5.0b3
|
eth_tester==0.5.0b3
|
||||||
py-evm==0.3.0a20
|
py-evm==0.3.0a20
|
||||||
rlp==2.0.1
|
rlp==2.0.1
|
||||||
|
coverage==5.5
|
||||||
|
Loading…
Reference in New Issue
Block a user