1 | <?php |
||
2 | |||
3 | /* |
||
4 | This file will automatically be included before EACH run. |
||
5 | |||
6 | Use it to configure atoum or anything that needs to be done before EACH run. |
||
7 | |||
8 | More information on documentation: |
||
9 | [en] http://docs.atoum.org/en/latest/chapter3.html#configuration-files |
||
10 | [fr] http://docs.atoum.org/fr/latest/lancement_des_tests.html#fichier-de-configuration |
||
11 | */ |
||
12 | |||
13 | use mageekguy\atoum; |
||
0 ignored issues
–
show
|
|||
14 | |||
15 | $report = $script->addDefaultReport(); |
||
16 | |||
17 | /* |
||
18 | LOGO |
||
19 | |||
20 | // This will add the atoum logo before each run. |
||
21 | $report->addField(new atoum\report\fields\runner\atoum\logo()); |
||
22 | |||
23 | // This will add a green or red logo after each run depending on its status. |
||
24 | $report->addField(new atoum\report\fields\runner\result\logo()); |
||
25 | */ |
||
26 | |||
27 | /* |
||
28 | CODE COVERAGE SETUP |
||
29 | |||
30 | // Please replace in next line "Project Name" by your project name and "/path/to/destination/directory" by your destination directory path for html files. |
||
31 | $coverageField = new atoum\report\fields\runner\coverage\html('Project Name', '/path/to/destination/directory'); |
||
32 | |||
33 | // Please replace in next line http://url/of/web/site by the root url of your code coverage web site. |
||
34 | $coverageField->setRootUrl('http://url/of/web/site'); |
||
35 | |||
36 | $report->addField($coverageField); |
||
37 | */ |
||
38 | |||
39 | /* |
||
40 | TEST EXECUTION SETUP |
||
41 | |||
42 | // Please replace in next line "/path/to/your/tests/units/classes/directory" by your unit test's directory. |
||
43 | $runner->addTestsFromDirectory('path/to/your/tests/units/classes/directory'); |
||
44 | */ |
||
45 | |||
46 | /* |
||
47 | TEST GENERATOR SETUP |
||
48 | |||
49 | $testGenerator = new atoum\test\generator(); |
||
50 | |||
51 | // Please replace in next line "/path/to/your/tests/units/classes/directory" by your unit test's directory. |
||
52 | $testGenerator->setTestClassesDirectory('path/to/your/tests/units/classes/directory'); |
||
53 | |||
54 | // Please replace in next line "your\project\namespace\tests\units" by your unit test's namespace. |
||
55 | $testGenerator->setTestClassNamespace('your\project\namespace\tests\units'); |
||
56 | |||
57 | // Please replace in next line "/path/to/your/classes/directory" by your classes directory. |
||
58 | $testGenerator->setTestedClassesDirectory('path/to/your/classes/directory'); |
||
59 | |||
60 | // Please replace in next line "your\project\namespace" by your project namespace. |
||
61 | $testGenerator->setTestedClassNamespace('your\project\namespace'); |
||
62 | |||
63 | // Please replace in next line "path/to/your/tests/units/runner.php" by path to your unit test's runner. |
||
64 | $testGenerator->setRunnerPath('path/to/your/tests/units/runner.php'); |
||
65 | |||
66 | $script->getRunner()->setTestGenerator($testGenerator); |
||
67 | */ |
||
68 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths