feat(testing): init pytest fixtures
current_test fixture allows to retrieve the current test context, that is exposed through the shell environment
This commit is contained in:
parent
c579ddd022
commit
644beb8696
6 changed files with 51 additions and 2 deletions
14
tox.ini
14
tox.ini
|
|
@ -2,7 +2,8 @@
|
|||
requires =
|
||||
tox>=4.19
|
||||
env_list =
|
||||
py3{8-12}-{unit}
|
||||
unit-py3{9-13}
|
||||
integration-py3{9-13}-pytest8
|
||||
lint
|
||||
format
|
||||
|
||||
|
|
@ -34,7 +35,7 @@ deps =
|
|||
commands =
|
||||
black --check src tests
|
||||
|
||||
[testenv:py3{9-13}-unit]
|
||||
[testenv:unit-py3{9-13}]
|
||||
description = run type check on code base
|
||||
labels = unit
|
||||
deps =
|
||||
|
|
@ -42,3 +43,12 @@ deps =
|
|||
pytest
|
||||
commands =
|
||||
pytest tests/unit --junitxml=test-reports/{env_name}.xml
|
||||
|
||||
[testenv:integration-py3{9-13}-pytest8]
|
||||
description = run pytest integration tests
|
||||
labels = integration
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
pytest8: pytest>=8.0,<=9.0
|
||||
commands =
|
||||
pytest tests/integration -m pytest --junitxml=test-reports/{env_name}.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue