soy-php/codeception-task

Codeception task for Soy

0.2.1 2015-12-11 13:10 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:40:47 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Introduction

This is a Codeception task for Soy

Usage

Include soy-php/codeception-task in your project with composer:

$ composer require soy-php/codeception-task

Then in your recipe you can use the task as follows:

<?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;