chaind-eth

Queue server for ethereum
Log | Files | Refs | README | LICENSE

commit 388910a4ac8f7f69dc6323ecf910272200653f48
parent 41ac66f9d250b252a0431ef436ca457554498852
Author: nolash <dev@holbrook.no>
Date:   Sat, 17 Jul 2021 07:39:55 +0200

Add coverage check

Diffstat:
A.coveragerc | 9+++++++++
M.gitignore | 1+
Arun_coverage.sh | 13+++++++++++++
Mtest_requirements.txt | 1+
4 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/.coveragerc b/.coveragerc @@ -0,0 +1,9 @@ +[run] +omit = + .venv/* + scripts/* + tests/* +source = + chainqueue/adapters + chainqueue + chaind_eth diff --git a/.gitignore b/.gitignore @@ -5,3 +5,4 @@ dist/ build/ *.egg-info *.sqlite +.coverage diff --git a/run_coverage.sh b/run_coverage.sh @@ -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 diff --git a/test_requirements.txt b/test_requirements.txt @@ -1,3 +1,4 @@ eth_tester==0.5.0b3 py-evm==0.3.0a20 rlp==2.0.1 +coverage==5.5