Skip to content

Commit

Permalink
Merge pull request #8766 from McSinyx/test-req-new-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored Aug 17, 2020
2 parents a3fd424 + 15e5680 commit ae7ed9a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/steps/run-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ steps:
# https://bugs.python.org/issue18199
$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
- task: PublishTestResults@2
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/steps/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ steps:
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
- 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

- 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

- task: PublishTestResults@2
Expand Down
Empty file.
9 changes: 4 additions & 5 deletions tools/requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
--use-feature=2020-resolver
cryptography==2.8
csv23
enum34; python_version < '3.4'
freezegun
mock
pretend
# pytest 5.x only supports python 3.5+
pytest<5.0.0
pytest
pytest-cov
# Prevent installing 9.0 which has install_requires "pytest >= 5.0".
pytest-rerunfailures<9.0
pytest-rerunfailures
pytest-timeout
pytest-xdist
pyyaml
setuptools>=39.2.0 # Needed for `setuptools.wheel.Wheel` support.
scripttest
setuptools>=39.2.0 # Needed for `setuptools.wheel.Wheel` support.
https://github.com/pypa/virtualenv/archive/legacy.zip#egg=virtualenv
werkzeug==0.16.0
wheel
6 changes: 3 additions & 3 deletions tools/travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ if [[ "$GROUP" == "1" ]]; then
# Unit tests
tox -- --use-venv -m unit -n auto
# 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
elif [[ "$GROUP" == "2" ]]; then
# 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
elif [[ "$GROUP" == "3" ]]; then
# 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
else
# Non-Testing Jobs should run once
Expand Down

0 comments on commit ae7ed9a

Please sign in to comment.