d6fe0170ee
Changes test invocation from `manage.py test` to `pytest`. Adds addtitional test requirements like pytest, pytest-django, pytest-html. Adds `pytest.mark` alongside django's test `tag`. Adds posibility to export test results into xml and html formats. Depends-On: https://review.opendev.org/#/c/712315/ Related-Bug: #1866666 Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info> Change-Id: Idb6e63cd23ca2ba8ca56f36eb8b63069bd211944
5 lines
318 B
Bash
Executable File
5 lines
318 B
Bash
Executable File
# Uses envpython and toxinidir from tox run to construct a test command
|
|
|
|
test_results="--junitxml=${1}/test_reports/selenium_test_results.xml --html=${1}/test_reports/selenium_test_results.html"
|
|
|
|
pytest ${1}/openstack_dashboard/ --ds=openstack_dashboard.test.settings -v -m selenium $test_results --self-contained-html |