-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoboFile.php
39 lines (35 loc) · 972 Bytes
/
RoboFile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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();
}
}