Dockerized instant acceptance testing for any website with Codeception
docker-compose
>= 1.7.0
Run the tests
docker-compose run --rm codecept run -d acceptance example
See tests/_output
for test results.
Configure base URL in tests/acceptance.suite.yml
.
modules:
config:
WebDriver:
url: http://my-domain.com/
Enter the tester container and open VNC connections Firefox and Chrome
make open-vnc bash
Create Cept
s to tests/acceptance/project
.
$ codecept generate:cept acceptance project/Products
Edit the newly generated file, ie.
$I->amOnPage('products.php');
$I->see('Products', 'h1');
And run the tests
$ codecept run acceptance project
For more information how to use Codeception, run codecept --help
or visit their documentation.
$I->pauseExecution
is very helpful in debug modde- There are a lot of extensions/modules available for Codeception
- 📗 Documentation
- ⚫
dmstr/docker-acception
- ⚪
dmstr/docker-yii2-app
Example for unit & functional testing with Codeception Docker container - 💿 Codeception