Skip to content

Commit

Permalink
Add performance tests to tox.ini
Browse files Browse the repository at this point in the history
Without this, we are reusing the default env.
This is a problem, as it does extra stuff we don't need, like
fetching containers. To represent a user behaviour, no prefetch
should be done.
  • Loading branch information
evrardjp committed May 18, 2021
1 parent d75523d commit 13e4ed4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ commands =
commands =
pytest -n auto test_unit.py --junitxml={toxinidir}/junit_unit.xml []

[testenv:performance]
commands =
# No need to fetch containers or run things in parallel
pytest -n0 -m "serial" test_{envname}.py --junitxml={toxinidir}/junit_performance.xml []

[testenv:fetch-all]
commands =
m8a-fetch-all-containers
Expand Down

0 comments on commit 13e4ed4

Please sign in to comment.