soyhuce/phpunit-to-cobertura 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soyhuce/phpunit-to-cobertura

Composer 安装命令:

composer require soyhuce/phpunit-to-cobertura

包简介

Generates a cobertura code coverage report from phpunit

README 文档

README

Latest Version on Packagist GitHub Workflow Status Total Downloads

Some modern workflows need test coverage report to be generated with Cobertura. Phpunit does not support (yet ?) Cobertura report generation.

This project aims to solve this.

Installation

Via composer :

composer require --dev soyhuce/phpunit-to-cobertura

That's all !

Generating a Cobertura coverage report

First, you need to run your phpunit tests with code coverage enabled. This needs to generate (at least) the code coverage in php format.

<coverage processUncoveredFiles="true">
    <include>
        <directory suffix=".php">src</directory>
    </include>
    <report>
        <php outputFile="./phpunit/codeCoverage.php"/>
    </report>
</coverage>

Once done, you can convert the php code coverage into a Cobertura coverage.

./vendor/bin/phpunit-to-cobertura ./phpunit/codeCoverage.php ./phpunit/coberturaCoverage.xml

Support

Fow now, only PHPUnit 9.3 is supported.

Contributing

You are welcome to contribute to this project ! Please see CONTRIBUTING.md.

License

This package is provided under the MIT License

统计信息

  • 总下载量: 5.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固