]> git.agnieray.net Git - galette.git/blob - tests/clover.php
Enable code coverage on travis runs, send to scrutinizer
[galette.git] / tests / clover.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Atoum code coverage in clover format, for scrutinizer
7 * To use it, you can choose either:
8 * * php path/to/test/file -c path/to/this/file
9 * * php path/to/atoum/scripts/runner.php -c path/to/this/file -f path/to/test/file
10 *
11 * PHP version 5
12 *
13 * Copyright © 2020 The Galette Team
14 *
15 * This file is part of Galette (http://galette.tuxfamily.org).
16 *
17 * Galette is free software: you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation, either version 3 of the License, or
20 * (at your option) any later version.
21 *
22 * Galette is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
29 *
30 * @category Core
31 * @package GaletteTests
32 *
33 * @author Johan Cwiklinski <johan@x-tnd.be>
34 * @copyright 2020 The Galette Team
35 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
36 * @link http://galette.tuxfamily.org
37 * @since 2020-06-14
38 */
39
40 use mageekguy\atoum;
41
42 $script->addDefaultReport();
43
44 $cloverWriter = new atoum\writers\file(__DIR__ . '/clover.xml');
45 $cloverReport = new atoum\reports\asynchronous\clover();
46 $cloverReport->addWriter($cloverWriter);
47
48 $runner->addReport($cloverReport);