Selenium/Getting Started/Run tests targeting MediaWiki-Quickstart
Appearance
This page describes how to run Selenium tests locally using MediaWiki Quickstart.
Advantages
[edit]- It is super simple and only needs Docker installed.
- Works without an internet connection as long as you have the containers downloaded/MediaWiki started.
Disadvantages
[edit]- Running inside Docker is a little bit slower than running directly on your machine.
Prerequisites
[edit]You need to have Docker installed on your machine.
Setup MediaWiki-Quickstart
[edit]Check the README at the MediaWiki-Quickstart repository and follow the installation and the usage section to get MediaWiki up and running.
Run Selenium tests
[edit]Inside of your MediaWiki-Quickstart cloned repository run:
./run_selenium_tests
This will run the WebdriverIO tests inside a container targeting your MediaWiki-Quickstart installation. By default a browser window will open and where you can see the test runs. If you want to run the tests without seeing the browser, you do that with the silent flag.
SILENT=1 ./run_selenium_tests
You can also run tests for specific extensions/skins and use specific Gerrit patches. All that is documented in the MediaWiki-Quickstart README.