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
Horizon Integration Tests
Horizon's integration tests treat Horizon as a black box.
Running the integration tests
Set up an OpenStack server
Prepare the configuration file at local-horizon.conf if you need to change the default configurations. Note that horizon.conf can be used for the same purpose too from the historical reason.
You can generate a sample configuration file by the following command:
$ oslo-config-generator \ --namespace openstack_dashboard_integration_tests --output-file openstack_dashboard/test/integration_tests/horizon.conf.sample
Run the tests. :
$ tox -e integration
More information
https://wiki.openstack.org/wiki/Horizon/Testing/UI
https://wiki.mozilla.org/QA/Execution/Web_Testing/Docs/Automation/StyleGuide#Page_Objects