forked from mozilla/klaatu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (40 loc) · 1.14 KB
/
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
47
48
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
[tox]
envlist = exp-tests, bdd-tests, formatting, mypy
skipsdist = True
[testenv]
allowlist_externals =
sh
poetry
mv
[testenv:exp-tests]
passenv = *
commands =
poetry install
poetry run pytest --html=report.html --driver Firefox {posargs}
[testenv:bdd-tests]
basepython = py311
passenv = *
commands =
poetry install --no-root
poetry run pytest --driver Firefox tests/scenarios/ {posargs}
[testenv:formatting]
commands =
poetry install
poetry -V
poetry install --no-root
poetry run isort --sp pyproject.toml -c tests/
poetry run black --quiet --diff --config pyproject.toml --check tests/
poetry run flake8 --config .flake8 tests/
# poetry run mypy tests/ --config-file=pyproject.toml - Scope too big for now
[testenv:fix-formatting]
commands =
poetry install
poetry run black --config pyproject.toml tests/
poetry run isort tests/
[testenv:mypy]
commands =
poetry install
poetry run mypy tests/