Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhensby/codeception-silverstripe

A Framework Module to link SilverStripe and Codeception
https://github.com/dhensby/codeception-silverstripe

codeception-module silverstripe testing

Last synced: about 1 month ago
JSON representation

A Framework Module to link SilverStripe and Codeception

Awesome Lists containing this project

README

        

# Codeception SilverStripe Framework Module

This module links [Codeception](https://github.com/codeception) to the [SilverStripe Framework](https://github.com/silverstripe).

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:

```yml
# 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!