/codeception-silverstripe

A Framework Module to link SilverStripe and Codeception

Primary LanguagePHP

Codeception SilverStripe Framework Module

This module links Codeception to the SilverStripe Framework.

This allows you to use Codeception to run Functional tests off of SilverStripe.

Notice

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.

Installation

composer require dhensby/codeception-silverstripe --dev

Usage

Update your 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!