forked from boxine/django-huey-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest-ci.ini
35 lines (28 loc) · 777 Bytes
/
pytest-ci.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# pytest config used in CI pipeline
# manual usage, e.g:
#
# $ pipenv run pytest -c pytest-ci.ini
#
# http://doc.pytest.org/en/latest/customize.html#builtin-configuration-file-options
# https://pytest-django.readthedocs.io/en/latest/
[pytest]
testpaths = .
norecursedirs = .* __pycache__ coverage* dist htmlcov volumes
# Use postgres database for tests:
DJANGO_SETTINGS_MODULE = huey_monitor_tests.test_project.settings.tests
addopts =
# reuse existing database, but apply migrations:
--create-db
--migrations
# coverage:
--cov=.
--no-cov-on-fail
--cov-report html
--cov-report xml
--showlocals
--doctest-modules
# exit after 5 failures:
--maxfail=5
# per-test capturing method: one of fd|sys|no:
--capture=no