dhensby / codeception-silverstripe
SilverStripe 框架模块用于 Codeception
0.2.0
2017-07-20 16:13 UTC
Requires
- codeception/codeception: ^2.3
This package is auto-updated.
Last update: 2024-09-18 05:13:53 UTC
README
此模块将 Codeception 连接到 SilverStripe 框架。
这允许您使用 Codeception 在 SilverStripe 上运行功能测试。
注意
这是一个非常早期的预_alpha 版本。目前它仅允许通过到 Director::test
。缺少的功能包括测试后的 fixture、DB 重置等。
安装
composer require dhensby/codeception-silverstripe --dev
用法
更新您的 functional.suite.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
... 完成设置... 开心测试!