-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.atoum.php
More file actions
22 lines (17 loc) · 766 Bytes
/
.atoum.php
File metadata and controls
22 lines (17 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
use \atoum\atoum;
$runner->addTestsFromDirectory(__DIR__ . '/src/');
// Exclude Recurrence classe, there is only getters and setters here
$script->noCodeCoverageForClasses(\Recurrence\Recurrence::class);
// Configure HTML code coverage report
$coverageHtmlField = new atoum\report\fields\runner\coverage\html('Recurrence', __DIR__ . '/var/code-coverage');
$coverageHtmlField->addSrcDirectory(__DIR__ . '/src');
$script
->addDefaultReport()
->addField($coverageHtmlField)
;
// Configure clover/xml code coverage report
$cloverWriter = new atoum\writers\file(__DIR__ . '/var/code-coverage/recurrence.coverage.xml');
$cloverReport = new atoum\reports\asynchronous\clover();
$cloverReport->addWriter($cloverWriter);
$runner->addReport($cloverReport);