# Codeception Task [](https://packagist.org/packages/soy-php/codeception-task) [](https://packagist.org/packages/soy-php/codeception-task) [](https://packagist.org/packages/soy-php/codeception-task) [](https://packagist.org/packages/soy-php/codeception-task) ## Introduction This is a [Codeception](http://codeception.com/) task for Soy ## Usage Include `soy-php/codeception-task` in your project with composer: ```sh $ composer require soy-php/codeception-task ``` Then in your recipe you can use the task as follows: ```php 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; ```