dhensby/codeception-silverstripe

SilverStripe Framwork Module for Codeception

0.2.0 2017-07-20 16:13 UTC

This package is auto-updated.

Last update: 2024-10-18 05:22:33 UTC


README

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!