@@ -107,6 +107,7 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
107
107
--log-json <file> Log test execution in JSON format.
108
108
109
109
--coverage-clover <file> Generate code coverage report in Clover XML format.
110
+ --coverage-crap4j <file> Generate code coverage report in Crap4J XML format.
110
111
--coverage-html <dir> Generate code coverage report in HTML format.
111
112
--coverage-php <file> Serialize PHP_CodeCoverage object to file.
112
113
--coverage-text=<file> Generate code coverage report in text format.
@@ -116,9 +117,12 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
116
117
--testdox-text <file> Write agile documentation in Text format to file.
117
118
118
119
--filter <pattern> Filter which tests to run.
120
+ --testsuite <pattern> Filter which testsuite to run.
119
121
--group ... Only runs tests from the specified group(s).
120
122
--exclude-group ... Exclude tests from the specified group(s).
121
123
--list-groups List available test groups.
124
+ --test-suffix ... Only search for test in files with specified
125
+ suffix(es). Default: Test.php,.phpt
122
126
123
127
--loader <loader> TestSuiteLoader implementation to use.
124
128
--printer <printer> TestSuiteListener implementation to use.
@@ -135,7 +139,7 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
135
139
--stop-on-incomplete Stop execution upon first incomplete test.
136
140
--strict Run tests in strict mode.
137
141
-v|--verbose Output more verbose information.
138
- --debug Display debbuging information during test execution.
142
+ --debug Display debugging information during test execution.
139
143
140
144
--process-isolation Run each test in a separate PHP process.
141
145
--no-globals-backup Do not backup and restore $GLOBALS for each test.
@@ -248,6 +252,21 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
248
252
</listitem >
249
253
</varlistentry >
250
254
255
+ <varlistentry >
256
+ <indexterm ><primary >Code Coverage</primary ></indexterm >
257
+ <term ><literal >--coverage-crap4j</literal ></term >
258
+ <listitem >
259
+ <para >
260
+ Generates a code coverage report in Crap4j format. See
261
+ <xref linkend =" code-coverage-analysis" /> for more details.
262
+ </para >
263
+ <para >
264
+ Please note that this functionality is only available when the
265
+ tokenizer and Xdebug extensions are installed.
266
+ </para >
267
+ </listitem >
268
+ </varlistentry >
269
+
251
270
<varlistentry >
252
271
<indexterm ><primary >Code Coverage</primary ></indexterm >
253
272
<term ><literal >--coverage-php</literal ></term >
@@ -303,6 +322,15 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
303
322
</listitem >
304
323
</varlistentry >
305
324
325
+ <varlistentry >
326
+ <term ><literal >--testsuite</literal ></term >
327
+ <listitem >
328
+ <para >
329
+ Only runs the test suite whose name matches the given pattern.
330
+ </para >
331
+ </listitem >
332
+ </varlistentry >
333
+
306
334
<varlistentry >
307
335
<indexterm ><primary >Test Groups</primary ></indexterm >
308
336
<indexterm ><primary >Annotation</primary ></indexterm >
@@ -346,6 +374,15 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
346
374
</para >
347
375
</listitem >
348
376
</varlistentry >
377
+
378
+ <varlistentry >
379
+ <term ><literal >--test-suffix</literal ></term >
380
+ <listitem >
381
+ <para >
382
+ Only search for test files with specified suffix(es).
383
+ </para >
384
+ </listitem >
385
+ </varlistentry >
349
386
350
387
<varlistentry >
351
388
<indexterm ><primary >PHPUnit_Runner_TestSuiteLoader</primary ></indexterm >
0 commit comments