Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.42 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.42 KB

docker-codeception

Codeception is a BDD-style testing framework. This is a docker image that eases setup.

About Codeception

Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides you an absolutely new way of writing acceptance, functional and even unit tests. Powered by PHPUnit.

From: codeception/codeception

Install

This docker image is available as an automated build on the docker registry hub, so using it is as simple as running:

$ docker run shouldbee/codecept

To further ease running, it's recommended to set up a much shorter function so that you can easily execute it as just codecept:

$ codecept () {
  docker run -it --rm --net host -v `pwd`:/wd -w /wd shouldbee/codecept $@
}

This will create a temporary function. In order to make it persist reboots, you can append this exact line to your ~/.bashrc (or similar) like this:

$ declare -f codecept >> ~/.bashrc

Usage

Usage from codeception/codeception

If you successfully installed Codeception, run this command:

codecept bootstrap

this will create a default directory structure and default test suites

See official site for more information.