承接 umbrellio/coverspector 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

umbrellio/coverspector

Composer 安装命令:

composer require umbrellio/coverspector

包简介

This package helps to check that code coverage above minimum value. It can be useful in CI or git hooks.

README 文档

README

Github Status Coverage Status Latest Stable Version Total Downloads Code Intelligence Status Build Status Scrutinizer Code Quality

This package helps to check that code coverage above minimum value. It can be useful in CI or git hooks.

Features

  • Fail CI/hook when code coverage is less than minimal value.
  • Print list of uncovered files

Installation

Run this command to install:

composer require umbrellio/coverspector

Usage

Allow coverage toll to print info about uncovered files. In case of phpunit, add to phpunit config:

addUncoveredFilesFromWhitelist="true"

In case of codeception:

show_uncovered: true

In your CI, dump coverage output into file

vendor/bin/codecept run --coverage | tee coverage.txt

Than, run coverspector with minimum code coverage value

vendor/bin/coverspector --file=coverage.txt --min=100

If coverage will be less, coverspector will fail the job and print list of all not totaly covered files

CI Coverage Artifacts

If you still want to save coverage report as CI artifact - you should set

when: on_failure

in your CI config.

License

Released under MIT License.

Authors

Created by Makin Vladislav.

Contributing

  • Fork it ( https://github.com/umbrellio/coverspector )
  • Create your feature branch (git checkout -b feature/my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin feature/my-new-feature)
  • Create new Pull Request
Supported by Umbrellio

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固