Joomla system tests uses Drone for Continuous Integration (CI). These three Docker containers gives the possibility to run the Joomla system tests local, from local Joomla source code folder and as far as possible as with Drone.
Simple dirty use of all what was found in .drone.yml and joomla-projects/docker-images.
Git, Docker and a bash scripting environment are required and must be installed.
git clone https://github.com/muhme/joomla-drone-system-tests
cd joomla-drone-system-tests
# put your Joomla source code in folder www, e.g.
git clone --depth 1 https://github.com/joomla/joomla-cms www
scripts/create.sh
Name | Port | Comment |
---|---|---|
mysql | ||
phpmin-system-mysql | 1080 | user ci-admin / password: joomla-17082005 (see www/cypress.config.js) |
mysqladmin | 1081 | user joomla_ut / password joomla_ut |
Running the complete system test suite:
scripts/tests.sh
Running one system test specification by example:
scripts/test.sh tests/System/integration/site/components/com_contact/Categories.cy.js
The bash scripts are for macOS, Linux or Windows WSL 2:
Script | Description | Additional Info |
---|---|---|
scripts/create.sh | Create the three Docker containers | and running composer update and npm ci |
scripts/test.sh | Running system test | without argument all system tests or give one test specification as argument |
scripts/clean.sh | Removes docker compose containers | with argument all also folders cypress-cache and www and also docker compose volumes, images and networks |
MIT License, Copyright (c) 2024 Heiko Lübbe, see LICENSE
Don't hesitate to ask if you have any questions or comments. If you encounter any problems or have suggestions for enhancements, please feel free to open an issue.