Skip to content

Commit c41f07f

Browse files
authored
Merge pull request #864 from adrenalinkin/ISSUE-6760
Added documentation for the new option --disable-coverage-php
2 parents 3727695 + 134734b commit c41f07f

File tree

2 files changed

+38
-34
lines changed

2 files changed

+38
-34
lines changed

docs/Codecoverage.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ All you need is to execute codeception with `--coverage` option.
9292
To generate a clover xml report or a tasty html report append also `--coverage-xml` and `--coverage-html` options.
9393

9494

95-
```yaml
95+
```bash
9696
php vendor/bin/codecept run --coverage --coverage-xml --coverage-html
9797
```
9898

99+
> note: If you don't need to generate default PHP coverage report (coverage.serialized) you can call `--disable-coverage-php` option.
100+
This option can help you reduce memory usage and fix problems with memory leak on the huge projects.
101+
99102
XML and HTML reports are stored to the `_output` directory. The best way to review report is to open `index.html` from `tests/_output/coverage` in your browser.
100103
XML clover reports are used by IDEs (like PHPStorm) or Continuous Integration servers (like Jenkins).
101104

docs/reference/Commands.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -239,39 +239,40 @@ Arguments:
239239

240240
Options:
241241
-o, --override=OVERRIDE Override config values (multiple values allowed)
242-
--config (-c) Use custom path for config
243-
--report Show output in compact style
244-
--html Generate html with results (default: "report.html")
245-
--xml Generate JUnit XML Log (default: "report.xml")
246-
--phpunit-xml Generate PhpUnit XML Log (default: "phpunit-report.xml")
247-
--no-redirect Do not redirect to Composer-installed version in vendor/codeception
248-
--colors Use colors in output
249-
--no-colors Force no colors in output (useful to override config file)
250-
--silent Only outputs suite names and final results. Almost the same as `--quiet`
251-
--steps Show steps in output
252-
--debug (-d) Alias for `-vv`
253-
--bootstrap Execute bootstrap script before the test
254-
--coverage Run with code coverage (default: "coverage.serialized")
255-
--coverage-html Generate CodeCoverage HTML report in path (default: "coverage")
256-
--coverage-xml Generate CodeCoverage XML report in file (default: "coverage.xml")
257-
--coverage-text Generate CodeCoverage text report in file (default: "coverage.txt")
258-
--coverage-phpunit Generate CodeCoverage PHPUnit report in file (default: "coverage-phpunit")
259-
--coverage-cobertura Generate CodeCoverage Cobertura report in file (default: "coverage-cobertura")
260-
--no-exit Don't finish with exit code
261-
--group (-g) Groups of tests to be executed (multiple values allowed)
262-
--skip (-s) Skip selected suites (multiple values allowed)
263-
--skip-group (-x) Skip selected groups (multiple values allowed)
264-
--env Run tests in selected environments. (multiple values allowed, environments can be merged with ',')
265-
--fail-fast (-f) Stop after nth failure (defaults to 1)
266-
--no-rebuild Do not rebuild actor classes on start
267-
--help (-h) Display this help message.
268-
--quiet (-q) Do not output any message. Almost the same as `--silent`
269-
--verbose (-v|vv|vvv) Increase the verbosity of messages: `v` for normal output, `vv` for steps and debug, `vvv` for Codeception-internal debug
270-
--version (-V) Display this application version.
271-
--ansi Force ANSI output.
272-
--no-ansi Disable ANSI output.
273-
--no-interaction (-n) Do not ask any interactive question.
274-
--seed Use the given seed for shuffling tests
242+
--config (-c) Use custom path for config
243+
--report Show output in compact style
244+
--html Generate html with results (default: "report.html")
245+
--xml Generate JUnit XML Log (default: "report.xml")
246+
--phpunit-xml Generate PhpUnit XML Log (default: "phpunit-report.xml")
247+
--no-redirect Do not redirect to Composer-installed version in vendor/codeception
248+
--colors Use colors in output
249+
--no-colors Force no colors in output (useful to override config file)
250+
--silent Only outputs suite names and final results. Almost the same as `--quiet`
251+
--steps Show steps in output
252+
--debug (-d) Alias for `-vv`
253+
--bootstrap Execute bootstrap script before the test
254+
--coverage Run with code coverage (default: "coverage.serialized")
255+
--disable-coverage-php Don't generate CodeCoverage report in raw PHP serialized format
256+
--coverage-html Generate CodeCoverage HTML report in path (default: "coverage")
257+
--coverage-xml Generate CodeCoverage XML report in file (default: "coverage.xml")
258+
--coverage-text Generate CodeCoverage text report in file (default: "coverage.txt")
259+
--coverage-phpunit Generate CodeCoverage PHPUnit report in file (default: "coverage-phpunit")
260+
--coverage-cobertura Generate CodeCoverage Cobertura report in file (default: "coverage-cobertura")
261+
--no-exit Don't finish with exit code
262+
--group (-g) Groups of tests to be executed (multiple values allowed)
263+
--skip (-s) Skip selected suites (multiple values allowed)
264+
--skip-group (-x) Skip selected groups (multiple values allowed)
265+
--env Run tests in selected environments. (multiple values allowed, environments can be merged with ',')
266+
--fail-fast (-f) Stop after nth failure (defaults to 1)
267+
--no-rebuild Do not rebuild actor classes on start
268+
--help (-h) Display this help message.
269+
--quiet (-q) Do not output any message. Almost the same as `--silent`
270+
--verbose (-v|vv|vvv) Increase the verbosity of messages: `v` for normal output, `vv` for steps and debug, `vvv` for Codeception-internal debug
271+
--version (-V) Display this application version.
272+
--ansi Force ANSI output.
273+
--no-ansi Disable ANSI output.
274+
--no-interaction (-n) Do not ask any interactive question.
275+
--seed Use the given seed for shuffling tests
275276

276277
{% endhighlight %}
277278

0 commit comments

Comments
 (0)