mirror of https://github.com/pypa/pip
Use --durations instead of --duration for pytest
Newer pytest no longer accepts --duration as an alias for --durations.
This commit is contained in:
parent
5ef3dd1a54
commit
530463879e
|
@ -43,7 +43,7 @@ steps:
|
||||||
# https://bugs.python.org/issue18199
|
# https://bugs.python.org/issue18199
|
||||||
$env:TEMP = "R:\Temp"
|
$env:TEMP = "R:\Temp"
|
||||||
|
|
||||||
tox -e py -- -m integration -n auto --duration=5 --junit-xml=junit/integration-test.xml
|
tox -e py -- -m integration -n auto --durations=5 --junit-xml=junit/integration-test.xml
|
||||||
displayName: Tox run integration tests
|
displayName: Tox run integration tests
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
@ -11,10 +11,10 @@ steps:
|
||||||
displayName: Tox run unit tests
|
displayName: Tox run unit tests
|
||||||
|
|
||||||
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
|
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
|
||||||
- script: tox -e py -- -m integration -n auto --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
|
- script: tox -e py -- -m integration -n auto --durations=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
|
||||||
displayName: Tox run Group 0 integration tests
|
displayName: Tox run Group 0 integration tests
|
||||||
|
|
||||||
- script: tox -e py -- -m integration -n auto --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
|
- script: tox -e py -- -m integration -n auto --durations=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
|
||||||
displayName: Tox run Group 1 integration tests
|
displayName: Tox run Group 1 integration tests
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
@ -49,15 +49,15 @@ if [[ "$GROUP" == "1" ]]; then
|
||||||
# Unit tests
|
# Unit tests
|
||||||
tox -- --use-venv -m unit -n auto
|
tox -- --use-venv -m unit -n auto
|
||||||
# Integration tests (not the ones for 'pip install')
|
# Integration tests (not the ones for 'pip install')
|
||||||
tox -- -m integration -n auto --duration=5 -k "not test_install" \
|
tox -- -m integration -n auto --durations=5 -k "not test_install" \
|
||||||
--use-venv $RESOLVER_SWITCH
|
--use-venv $RESOLVER_SWITCH
|
||||||
elif [[ "$GROUP" == "2" ]]; then
|
elif [[ "$GROUP" == "2" ]]; then
|
||||||
# Separate Job for running integration tests for 'pip install'
|
# Separate Job for running integration tests for 'pip install'
|
||||||
tox -- -m integration -n auto --duration=5 -k "test_install" \
|
tox -- -m integration -n auto --durations=5 -k "test_install" \
|
||||||
--use-venv $RESOLVER_SWITCH
|
--use-venv $RESOLVER_SWITCH
|
||||||
elif [[ "$GROUP" == "3" ]]; then
|
elif [[ "$GROUP" == "3" ]]; then
|
||||||
# Separate Job for tests that fail with the new resolver
|
# Separate Job for tests that fail with the new resolver
|
||||||
tox -- -m fails_on_new_resolver -n auto --duration=5 \
|
tox -- -m fails_on_new_resolver -n auto --durations=5 \
|
||||||
--use-venv $RESOLVER_SWITCH --new-resolver-runtests
|
--use-venv $RESOLVER_SWITCH --new-resolver-runtests
|
||||||
else
|
else
|
||||||
# Non-Testing Jobs should run once
|
# Non-Testing Jobs should run once
|
||||||
|
|
Loading…
Reference in New Issue