SilverStripe Framwork Module for Codeception
This allows you to use Codeception to run Functional tests off of SilverStripe.
This is a very early pre-alpha version. Currently it simply allows passing through to
Director::test. Missing features
include fixture, DB reset after tests run and more.
composer require dhensby/codeception-silverstripe --dev
functional.suite.yml file so it looks like this:
# Codeception Test Suite Configuration # # Suite for functional tests # Emulate web requests and make application process them # Include one of framework modules (Symfony2, Yii2, Laravel5) to use it # Remove this suite if you don't use frameworks actor: FunctionalTester modules: enabled: # add a framework module here - SilverStripe3 - \Helper\Functional
and you're done... Happy testing!