forked from faif/python-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
24 lines (20 loc) · 639 Bytes
/
Copy pathtox.ini
File metadata and controls
24 lines (20 loc) · 639 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
[tox]
envlist = ci37,ci38,cov-report
[testenv]
setenv =
COVERAGE_FILE = .coverage.{envname}
deps =
-r requirements-dev.txt
commands =
flake8 patterns/
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
pytest --randomly-seed=1234 --doctest-modules patterns/
; `-p no:randomly` turns off `randomly` plugin for unit tests
pytest -s -vv --cov={envsitepackagesdir}/patterns --log-level=INFO -p no:randomly tests/
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report