Skip to content

Dockerized instant acceptance testing for any website with Codeception

Notifications You must be signed in to change notification settings

dmstr/docker-acception

Repository files navigation

Acception

Dockerized instant acceptance testing for any website with Codeception

Requirements

  • docker-compose >= 1.7.0

Quick Start

Run the tests

docker-compose run --rm codecept run -d acceptance example

See tests/_output for test results.

Setup

Configure base URL in tests/acceptance.suite.yml.

modules:
    config:
        WebDriver:
            url: http://my-domain.com/

Usage

Enter the tester container and open VNC connections Firefox and Chrome

make open-vnc bash

Create Cepts 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.

Tips & tricks

Resources


dmstr logo Built by dmstr

About

Dockerized instant acceptance testing for any website with Codeception

Resources

Stars

Watchers

Forks

Packages

No packages published