Move to juno test runner

This commit is contained in:
Gergely Polonkai 2015-10-20 09:53:17 +02:00
parent 8a3c6a7851
commit 556f6086bd
4 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@
/static/ /static/
/.coverage /.coverage
/htmlcov/ /htmlcov/
/test_failures.txt
/test_rerun.txt

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
APPENDCOV = $(shell test -s test_rerun.txt && echo "-a")
test:
coverage run $(APPENDCOV) \
--source "duckbook,booking,api,accounts" \
manage.py test `cat test_rerun.txt`
coverage html
coverage report

4
dev-requirements.txt Normal file
View File

@ -0,0 +1,4 @@
-r requirements.txt
coverage==4.0.1
django-coverage-plugin==1.0
django-juno-testrunner==0.3.1

View File

@ -87,6 +87,8 @@ USE_TZ = True
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = 'static' STATIC_ROOT = 'static'
TEST_RUNNER = 'junorunner.testrunner.TestSuiteRunner'
MAX_DUCK_LEVEL = 5 MAX_DUCK_LEVEL = 5
COMP_WARN_LEVEL = 2 COMP_WARN_LEVEL = 2
MIN_FUZZY_SIMILARITY = 75 MIN_FUZZY_SIMILARITY = 75