forked from glpi-project/glpi
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.atoum.php
26 lines (20 loc) · 678 Bytes
/
.atoum.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
<?php
if (($coverage_dir = getenv('COVERAGE_DIR')) === false) {
$coverage_dir = 'code-coverage';
}
$coverage_path = __DIR__ . '/tests/' . $coverage_dir;
if (!file_exists($coverage_path)) {
mkdir($coverage_path);
}
$coverageField = new atoum\atoum\report\fields\runner\coverage\html(
'GLPI',
$coverage_path
);
$coverageField->setRootUrl('file://' . realpath($coverage_path));
$script
->addDefaultReport()
->addField($coverageField);
$cloverWriter = new atoum\atoum\writers\file($coverage_path . '/clover.xml');
$cloverReport = new atoum\atoum\reports\asynchronous\clover();
$cloverReport->addWriter($cloverWriter);
$runner->addReport($cloverReport);