digipolisgent/robo-drupal-console

View on GitHub
RoboFile.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

class RoboFile extends \Robo\Tasks
{

    use DigipolisGent\Robo\Task\DrupalConsole\loadTasks;

    /**
     * Runs the unit tests.
     */
    public function test()
    {
        $this->stopOnFail(true);
        $this->taskPHPUnit()
            ->option('disallow-test-output')
            ->option('report-useless-tests')
            ->option('strict-coverage')
            ->option('-v')
            ->option('-d error_reporting=-1')
            ->arg('tests')
            ->run();
    }

    /**
     * Provides test coverage for Scrutinizer
     */
    public function testCoverageCodeclimate()
    {
        $this->stopOnFail(true);
        $this->taskPHPUnit()
            ->option('disallow-test-output')
            ->option('report-useless-tests')
            ->option('strict-coverage')
            ->option('-d error_reporting=-1')
            ->option('--coverage-clover=build/logs/clover.xml')
            ->arg('tests')
            ->run();
    }
}