$ composer install
We have setup 3 containers in order to run our test.
- Webserver with Nginx to serve our html files
- Selenium to perform browser operation
- Php cli for execute behat tests
# up the nginx & selenium container and wait until selenium is ready
$ make start
In order to run the tests only when your features files have change, we use Makefile for run the suite of tests, the execution if perfomed into a dedicated container for avoid any configuration issue related to php version or communication with seleniumm services.
You can execute
make clean
to drop the log file and be able to re run the test again.
$ make behat
If you want cleanup the containers created by this project, run the next command.
$ make purge