diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..f7d9544f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,13 @@ +[run] +branch = True +source = sahara_dashboard +omit = + .tox/* + sahara_dashboard/test/* + +[paths] +source = sahara_dashboard + +[report] +ignore_errors = True +precision = 3 diff --git a/lower-constraints.txt b/lower-constraints.txt index 2ae380da..f7cee693 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -111,7 +111,6 @@ six==1.10.0 statsd==3.2.1 stevedore==1.20.0 tenacity==3.2.1 -testrepository==0.0.18 testscenarios==0.4 testtools==2.2.0 traceback2==1.4.0 diff --git a/test-requirements.txt b/test-requirements.txt index d4f08b67..7c7d3305 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,7 +11,6 @@ netifaces>=0.10.4 # MIT nose-exclude>=0.5.0 # LGPL python-subunit>=1.0.0 # Apache-2.0/BSD selenium>=2.50.1 # Apache-2.0 -testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD testtools>=2.2.0 # MIT # This also needs xvfb library installed on your OS diff --git a/tox.ini b/tox.ini index d2c038be..c9263d71 100644 --- a/tox.ini +++ b/tox.ini @@ -54,7 +54,11 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen [testenv:cover] basepython = python3 -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = + coverage erase + coverage run {toxinidir}/manage.py test sahara_dashboard --settings=sahara_dashboard.test.settings --exclude-dir=sahara_dashboard/test/integration_tests {posargs} + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:debug] basepython = python3