Add test watcher fixes #510
This commit is contained in:
Родитель
74408ae558
Коммит
3c716bcd48
|
@ -76,3 +76,7 @@ app/experimenter/served/
|
|||
|
||||
# Key files
|
||||
*.pem
|
||||
|
||||
# test files
|
||||
.pytest_cache
|
||||
.testmondata
|
||||
|
|
3
Makefile
3
Makefile
|
@ -19,6 +19,9 @@ gunicorn: compose_build
|
|||
test: compose_build
|
||||
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- coverage run manage.py test;coverage report -m --fail-under=100"
|
||||
|
||||
test-watch: compose_build
|
||||
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- ptw -- --testmon --show-capture=no --disable-warnings"
|
||||
|
||||
lint: compose_build
|
||||
docker-compose run app flake8 .
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# -- FILE: pytest.ini (or tox.ini)
|
||||
[pytest]
|
||||
DJANGO_SETTINGS_MODULE = experimenter.settings
|
||||
# -- recommended but optional:
|
||||
python_files = tests.py test_*.py *_tests.py
|
|
@ -12,6 +12,9 @@ gunicorn==19.7.1
|
|||
ipdb==0.10.1
|
||||
mock==2.0.0
|
||||
psycopg2==2.6.2
|
||||
pytest-django==3.4.2
|
||||
pytest-testmon==0.9.13
|
||||
pytest-watch==4.2.0
|
||||
python-decouple==3.0
|
||||
raven==6.0.0
|
||||
stmoab==0.0.8
|
||||
|
|
Загрузка…
Ссылка в новой задаче