-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
46 lines (40 loc) · 835 Bytes
/
tox.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
36
37
38
39
40
41
42
43
44
45
46
[tox]
isolated_build = True
envlist = py311, coverage, lint
[testenv]
deps =
pytest>=8.3.2
pytest-cov>=4.1.0
hypothesis>=6.99.0
parameterized>=0.9.0
commands =
pytest {posargs:tests/unit} -v
[testenv:coverage]
commands =
pytest {posargs:tests} --cov=src/ember --cov-report=term --cov-report=html --cov-report=xml
[testenv:fuzzing]
deps =
{[testenv]deps}
atheris>=2.3.0
commands =
python -m tests.fuzzing.run_fuzz_tests
[testenv:integration]
setenv =
RUN_INTEGRATION_TESTS=1
commands =
pytest {posargs:tests/integration} -v
[testenv:mutations]
deps =
mutmut>=2.4.4
commands =
mutmut run --paths-to-mutate=src/ember
mutmut results
[testenv:lint]
deps =
black>=23.3.0
ruff>=0.0.270
mypy>=1.3.0
commands =
black --check src tests
ruff src tests
mypy src