Revert "[ci] remove pytest-xdist dependency"

This reverts commit 2d594c22eb4683a210268d75051482752bb17de4.

Change-Id: I48c25c2fbd29ae40a7f50516ba3781d33949e1a5
This commit is contained in:
Andrey Kurilin 2017-06-06 11:55:40 +03:00
parent df0d4d25a2
commit fa68699966
3 changed files with 9 additions and 2 deletions

View File

@ -9,6 +9,10 @@ pytest>=2.7,<=3.0.7 # MIT
pytest-cov>=2.2.1,<=2.5.1 # MIT
# py.test plugin for generating HTML reports
pytest-html>=1.10.0,<=1.14.2 # Mozilla Public License 2.0 (MPL 2.0)
# py.test xdist plugin for distributed testing and loop-on-failing modes
pytest-xdist<=1.15.0 # MIT
# py.test plugin to abort hanging tests
pytest-timeout<=1.2.0 # MIT
coverage>=4.0,!=4.4,<=4.4.1 # Apache License, Version 2.0
ddt>=1.0.1,<=1.1.1

View File

@ -33,7 +33,7 @@ fi
git checkout HEAD^
baseline_report=$(mktemp -t rally_coverageXXXXXXX)
py.test --cov=rally tests/unit/ --cov-report=html
py.test --cov=rally tests/unit/ --cov-report=html --timeout=60 -n auto
coverage report > $baseline_report
mv cover cover-master
cat $baseline_report
@ -43,7 +43,7 @@ baseline_missing=$(awk 'END { print $3 }' $baseline_report)
git checkout -
current_report=$(mktemp -t rally_coverageXXXXXXX)
py.test --cov=rally tests/unit/ --cov-report=html
py.test --cov=rally tests/unit/ --cov-report=html --timeout=60 -n auto
coverage report > $current_report
current_missing=$(awk 'END { print $3 }' $current_report)

View File

@ -21,9 +21,12 @@ PYTEST_REPORT = os.environ.get("PYTEST_REPORT",
".test_results/pytest_results.html")
TESTR_REPORT = "testr_results.html"
PYTEST_ARGUMENTS = ("py.test" # base command
" -vv" # show test names in logs
" --html=%(html_report)s" # html report
" --self-contained-html" # embedded css
" --durations=10" # get a list of the slowest 10 tests
" -n auto" # launch tests in parallel
" --timeout=%(timeout)s" # timeout for individual test
" %(path)s"
)