Linux command
php-coveralls 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Upload coverage to Coveralls
php-coveralls
Specify coverage file
php-coveralls -v --coverage_clover=[coverage.xml]
Dry run
php-coveralls --dry-run
Use config file
php-coveralls -c [.coveralls.yml]
说明
php-coveralls uploads coverage to Coveralls. PHP code coverage reporting. The tool integrates with CI systems. Tracks test coverage over time.
参数
- --coverage_clover _FILE_
- Path to clover.xml coverage file.
- --coverage-php _FILE_
- Path to PHP code coverage report file.
- -c, --config _FILE_
- Path to configuration file.
- -o, --json_path _FILE_
- Path for JSON output to upload (default: build/logs/coveralls-upload.json).
- -r, --root_dir _DIR_
- Root directory of the project.
- --dry-run
- Test without uploading.
- -v
- Verbose output.
- -h, --help
- Display help.
FAQ
What is the php-coveralls command used for?
php-coveralls uploads coverage to Coveralls. PHP code coverage reporting. The tool integrates with CI systems. Tracks test coverage over time.
How do I run a basic php-coveralls example?
Run `php-coveralls` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --coverage_clover _FILE_ do in php-coveralls?
Path to clover.xml coverage file.