atreo/codeception

Nette 框架中对 Codeception 的实现。

1.0.10 2016-07-13 12:16 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:19:15 UTC


README

安装

$ composer require atreo/codeception

扩展配置

codeception: Atreo\Codeception\Di\CodeceptionExtension

像示例中一样更新您的 bootstrap.php。可能只需要添加

$configurator->addParameters([
	'appDir' => __DIR__,
	'wwwDir' => __DIR__ . '/../www'
]);

然后将示例中的 codeception.yml 和测试文件夹复制到您的项目根目录。

现在您可以运行 codeception 了

$ php vendor/bin/codecept run

如果您正在使用 kdyby/events,您可能需要更新 composer.json

"require": {
"kdyby/events": "@dev" },
"repositories": [
	{ "type": "git", "url": "https://github.com/AtreoCZ/Events.git" }
]