This is an example of Codeception on docker containers.
Download installer and install.
https://docs.docker.com/docker-for-mac/install/
$ docker-compose up -d --build
$ docker-compose exec php composer install
$ docker-compose exec php bin/codecept run acceptance
Codeception PHP Testing Framework v2.2.2
Powered by PHPUnit 5.4.6 by Sebastian Bergmann and contributors.
Acceptance Tests (2) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing acceptance
✔ BlogCept: Open blog page and see article there (4.411s)
✔ LoginCept: Login as admin to backend (6.607s)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 12.89 seconds, Memory: 10.00MB
OK (2 tests, 5 assertions)
-
For Mac
- Starting
Finder
. - Use
Connect to Server
. - Input
vnc://localhost:5900
toServer Address
. - Input
secret
toPassword
.
- Starting
-
Run acceptance tests
- Execute
bin/codecept run
command in php container.
- Execute