- docker >=1.10.2
- docker-compose >=1.7
Go to the tests
directory
cd tests
Start phd-potemkin-stack
docker-compose up -d
Start a bash
docker-compose run --rm -e YII_ENV=test phpfpm bash
Initialize database and application
$ setup.sh
Run cli test suite, group mandatory
$ codecept run -g mandatory cli,acceptance --steps
Your output should look similar to this.
Via compose run
docker-compose run --rm -e YII_ENV=test phpfpm codecept run -g mandatory -g ${GIIANT_TEST_DB} cli,unit,functional,acceptance