Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dhensby/codeception-silverstripe
- Owner: dhensby
- Created: 2017-06-12T20:16:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T14:00:16.000Z (almost 7 years ago)
- Last Synced: 2024-05-17T00:19:32.359Z (6 months ago)
- Topics: codeception-module, silverstripe, testing
- Language: PHP
- Size: 10.7 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 frameworksactor: FunctionalTester
modules:
enabled:
# add a framework module here
- SilverStripe3
- \Helper\Functional
```and you're done... Happy testing!