]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/_files/configuration.xml
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / _files / configuration.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2
3 <phpunit ansi="false"
4          bootstrap="/path/to/bootstrap.php"
5          convertErrorsToExceptions="true"
6          convertNoticesToExceptions="true"
7          convertWarningsToExceptions="true"
8          stopOnFailure="false">
9   <testsuite name="My Test Suite">
10     <directory suffix="Test.php">/path/to/files</directory>
11     <file>/path/to/MyTest.php</file>
12   </testsuite>
13
14   <groups>
15     <include>
16       <group>name</group>
17     </include>
18     <exclude>
19       <group>name</group>
20     </exclude>
21   </groups>
22
23   <filter>
24     <blacklist>
25       <directory suffix=".php">/path/to/files</directory>
26       <file>/path/to/file</file>
27       <exclude>
28         <directory suffix=".php">/path/to/files</directory>
29         <file>/path/to/file</file>
30       </exclude>
31     </blacklist>
32     <whitelist addUncoveredFilesFromWhitelist="true">
33       <directory suffix=".php">/path/to/files</directory>
34       <file>/path/to/file</file>
35       <exclude>
36         <directory suffix=".php">/path/to/files</directory>
37         <file>/path/to/file</file>
38       </exclude>
39     </whitelist>
40   </filter>
41
42   <logging>
43     <log type="coverage-html" target="/tmp/report" charset="UTF-8"
44          yui="true" highlight="false"
45          lowUpperBound="35" highLowerBound="70"/>
46     <log type="coverage-clover" target="/tmp/clover.xml"/>
47     <log type="coverage-source" target="/tmp/coverage"/>
48     <log type="graphviz" target="/tmp/logfile.dot"/>
49     <log type="json" target="/tmp/logfile.json"/>
50     <log type="metrics-xml" target="/tmp/metrics.xml"/>
51     <log type="plain" target="/tmp/logfile.txt"/>
52     <log type="pmd-xml" target="/tmp/pmd.xml" cpdMinLines="5" cpdMinMatches="70"/>
53     <log type="tap" target="/tmp/logfile.tap"/>
54     <log type="test-xml" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>
55     <log type="story-html" target="/tmp/story.html"/>
56     <log type="story-text" target="/tmp/story.txt"/>
57     <log type="testdox-html" target="/tmp/testdox.html"/>
58     <log type="testdox-text" target="/tmp/testdox.txt"/>
59
60     <pmd>
61       <rule class="PHPUnit_Util_Log_PMD_Rule_Project_CRAP"
62             threshold="5,30" priority="1"/>
63       <rule class="PHPUnit_Util_Log_PMD_Rule_Class_DepthOfInheritanceTree"
64             threshold="6" priority="1"/>
65       <rule class="PHPUnit_Util_Log_PMD_Rule_Class_EfferentCoupling"
66             threshold="20" priority="1"/>
67       <rule class="PHPUnit_Util_Log_PMD_Rule_Class_ExcessiveClassLength"
68             threshold="1000" priority="1"/>
69       <rule class="PHPUnit_Util_Log_PMD_Rule_Class_ExcessivePublicCount"
70             threshold="45" priority="1"/>
71       <rule class="PHPUnit_Util_Log_PMD_Rule_Class_TooManyFields"
72             threshold="15" priority="1"/>
73       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_CodeCoverage"
74             threshold="35,70" priority="1"/>
75       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_CRAP"
76             threshold="30" priority="1"/>
77       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_CyclomaticComplexity"
78             threshold="20" priority="1"/>
79       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_ExcessiveMethodLength"
80             threshold="100" priority="1"/>
81       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_ExcessiveParameterList"
82             threshold="10" priority="1"/>
83       <rule class="PHPUnit_Util_Log_PMD_Rule_Function_NPathComplexity"
84             threshold="200" priority="1"/>
85     </pmd>
86   </logging>
87
88   <php>
89     <ini name="foo" value="bar"/>
90     <var name="foo" value="bar"/>
91   </php>
92
93   <selenium>
94     <browser name="Firefox on Linux"
95              browser="*firefox /usr/lib/firefox/firefox-bin"
96              host="my.linux.box"
97              port="4444"
98              timeout="30000"/>
99   </selenium>
100 </phpunit>
101