Mellivora is tested using Codeception. Builds on TravisCI are used to verify before merging.
- Docker and docker-compose
Running ./tests/run_tests
should do the trick.
If you are making changes to composer requirements, you will need to delete/rebuild the docker image composerdependencies
.
You can do this by calling docker-compose -f docker-compose.test.yml build
.
- Call
docker-compose -f docker-compose.test.yml build
to rebuild all containers. - HTML output and screenshots of failing acceptance tests can be found in
tests/codeception/_output/
. - Your local settings in
include/config/config.inc.php
are used when running tests. Some settings will cause tests to fail, like enabling caching, captcha, etc. It is recommended to remove any non-default configuration while running acceptance tests locally.