use coverage directly. adjust coverage config for py3 tests
This commit is contained in:
parent
0661e0e3eb
commit
88ea9926ab
3 changed files with 23 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[run]
|
||||
|
||||
omit =
|
||||
/usr/lib/*
|
||||
/usr/*
|
||||
tests/*
|
||||
|
|
|
|||
12
.coveragerc3
Normal file
12
.coveragerc3
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[run]
|
||||
|
||||
; extra omissions for py3 for now
|
||||
|
||||
omit =
|
||||
/usr/*
|
||||
tests/*
|
||||
hub/*
|
||||
util/*
|
||||
koji/ssl/*
|
||||
koji/daemon.py
|
||||
koji/tasks.py
|
||||
15
Makefile
15
Makefile
|
|
@ -66,16 +66,21 @@ git-clean:
|
|||
|
||||
test:
|
||||
coverage erase
|
||||
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/. nosetests --with-coverage --cover-package .
|
||||
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/. coverage run \
|
||||
--source . /usr/bin/nosetests
|
||||
coverage report
|
||||
coverage html
|
||||
@echo Coverage report in htmlcov/index.html
|
||||
@echo Full coverage report in htmlcov/index.html
|
||||
|
||||
test3:
|
||||
coverage erase
|
||||
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/. nosetests-3 \
|
||||
--with-coverage --cover-package . tests/test_lib tests/test_cli
|
||||
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/. coverage3 run \
|
||||
--rcfile .coveragerc3 --source . \
|
||||
/usr/bin/nosetests-3 \
|
||||
tests/test_lib tests/test_cli
|
||||
coverage report
|
||||
coverage html
|
||||
@echo Coverage report in htmlcov/index.html
|
||||
@echo Full coverage report in htmlcov/index.html
|
||||
|
||||
subdirs:
|
||||
for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue