Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear |
---|
7 | # Licensed under the GPL version 2.0 license. |
---|
8 | # See LICENSE file or |
---|
9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
10 | # |
---|
11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
12 | |
---|
13 | use \mageekguy\atoum; |
---|
14 | |
---|
15 | // Write all on stdout. |
---|
16 | $stdOutWriter = new atoum\writers\std\out(); |
---|
17 | |
---|
18 | // Generate a CLI report. |
---|
19 | $cliReport = new atoum\reports\realtime\cli(); |
---|
20 | $cliReport->addWriter($stdOutWriter); |
---|
21 | |
---|
22 | // Coverage |
---|
23 | $coverageField = new atoum\report\fields\runner\coverage\html('Clearbricks', '/var/www/coverage/dotclear'); |
---|
24 | $coverageField->setRootUrl('http://localhost/coverage/dotclear'); |
---|
25 | $cliReport->addField($coverageField); |
---|
26 | |
---|
27 | $runner->addReport($cliReport); |
---|
Note: See
TracBrowser
for help on using the repository browser.