Selenium/How-to/Run tests targeting MediaWiki-Docker-Dev

From mediawiki.org
Jump to navigation Jump to search

Follow instructions from Run tests targeting MediaWiki-Docker or Run tests targeting MediaWiki-Docker using Fresh but instead of installing MediaWiki-Docker, install MediaWiki-Docker-Dev.

Prerequisites[edit]

Environment variables[edit]

Ensure the following environment variables are set. Either run this manually from the terminal or, to make it easier for next time, set them from shell configuration file (~/.bash_profile, ~/.zshrc...) which means the variables are always available from any terminal session:

# Target MediaWiki-Docker-Dev
export MW_SERVER=http://default.web.mw.localhost:8080
export MW_SCRIPT_PATH=/mediawiki
export MEDIAWIKI_USER=Admin
export MEDIAWIKI_PASSWORD=dockerpass

If you prefer, you can create an .env file instead (in MediaWiki Core folder), with this contents.

# Target MediaWiki-Docker-Dev
MW_SERVER=http://default.web.mw.localhost:8080
MW_SCRIPT_PATH=/mediawiki
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass