Boilerplate CodeCeption Module
PHP ^5.6
Composer ^1.x
Codeception ^2.3
The majority of this package is based off an article by Jordan Eldredge:
https://jordaneldredge.com/blog/writing-a-custom-codeception-module/
cd {project root}
- Run
composer require davidjeddy/codeception-hello-module
in terminal- OR add
"davidjeddy/codeception-hello-module": "dev-master@dev"
to your project'scomposer.json
, then runcomposer update
.
- OR add
Add the module to the suite configuration
class_name: Acceptancehelloer
modules:
enabled:
...
- Hello
...
- Rebuild codeception, typically
codeception build
- Add
$I->greet('NAME');
to a Cept/Cest test class - Run test suite
- Enjoy