forked from dotclear/dotclear
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.atoum.php
More file actions
28 lines (20 loc) · 704 Bytes
/
.atoum.php
File metadata and controls
28 lines (20 loc) · 704 Bytes
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
<?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
use atoum\atoum;
use atoum\atoum\reports;
// Enable extension
$extension = new reports\extension($script);
$extension->addToRunner($runner);
// Write all on stdout.
$stdOutWriter = new atoum\writers\std\out();
// Generate a CLI report.
$cliReport = new atoum\reports\realtime\cli();
$cliReport->addWriter($stdOutWriter);
// Xunit report
$xunit = new atoum\reports\asynchronous\xunit();
$runner->addReport($xunit);
// Xunit writer
$writer = new atoum\writers\file('tests/atoum.xunit.xml');
$xunit->addWriter($writer);
$runner->addTestsFromDirectory('tests/unit/');
$runner->addReport($cliReport);