1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 13:45:59 +02:00
tldr/pages/common/php-coveralls.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2021-02-05 13:53:51 +00:00
# php-coveralls
> A PHP client for Coveralls.
> More information: <https://php-coveralls.github.io/php-coveralls/#cli-options>.
2021-02-05 13:53:51 +00:00
- Send coverage information to Coveralls:
`php-coveralls`
- Send coverage information to Coveralls for a specific directory:
`php-coveralls {{[-r|--root_dir]}} {{path/to/directory}}`
2021-02-05 13:53:51 +00:00
- Send coverage information to Coveralls with a specific config:
`php-coveralls {{[-c|--config]}} {{path/to/.coveralls.yml}}`
2021-02-05 13:53:51 +00:00
- Send coverage information to Coveralls with verbose output:
`php-coveralls {{[-v|--verbose]}}`
2021-02-05 13:53:51 +00:00
- Send coverage information to Coveralls excluding source files with no executable statements:
`php-coveralls --exclude-no-stmt`
- Send coverage information to Coveralls with a specific environment name:
2021-02-05 13:53:51 +00:00
`php-coveralls {{[-e|--env]}} {{test|dev|prod}}`
2021-02-05 13:53:51 +00:00
- Specify multiple Coverage Clover XML files to upload:
`php-coveralls {{[-x|--coverage_clover]}} {{path/to/first_clover.xml}} --coverage_clover {{path/to/second_clover.xml}}`
2021-02-05 13:53:51 +00:00
- Output the JSON that will be sent to Coveralls to a specific file:
`php-coveralls {{[-o|--json_path]}} {{path/to/coveralls-upload.json}}`