-
Notifications
You must be signed in to change notification settings - Fork 7k
Expand file tree
/
Copy pathtox.ini
More file actions
30 lines (27 loc) · 687 Bytes
/
Copy pathtox.ini
File metadata and controls
30 lines (27 loc) · 687 Bytes
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
[tox]
envlist = py,cov-report
skip_missing_interpreters = true
usedevelop = true
[testenv]
setenv =
COVERAGE_FILE = .coverage.{envname}
deps =
pipenv
commands_pre =
pipenv sync --dev --system
allowlist_externals =
pytest
flake8
mypy
commands =
flake8 --exclude="venv/,.tox/" patterns/
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
pytest --randomly-seed=1234 --doctest-modules patterns/
pytest -s -vv --cov=patterns/ --log-level=INFO tests/
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report