soy-php / codeception-task
Soy 的 Codeception 任务
0.2.1
2015-12-11 13:10 UTC
Requires
- soy-php/soy: 0.1.*
This package is not auto-updated.
Last update: 2024-09-14 18:42:06 UTC
README
简介
这是一个 Codeception 任务,用于 Soy
使用方法
使用 composer 在项目中包含 soy-php/codeception-task
$ composer require soy-php/codeception-task
然后,在你的 recipe 中可以按照以下方式使用任务
<?php $recipe = new \Soy\Recipe(); $recipe->component('default', function (\Soy\Codeception\BuildTask $buildTask, \Soy\Codeception\RunTask $runTask) { $buildTask ->setVerbose(true) ->run(); $runTask ->setCoverageFormats([ \Soy\Codeception\RunTask::COVERAGE_TEXT, \Soy\Codeception\RunTask::COVERAGE_XML => 'my-report.xml', ]) ->addReportFormat(\Soy\Codeception\RunTask::REPORT_JSON) ->setVerbose(true) ->setDebug(true) ->run(); }); return $recipe;