承接 nimut/phpunit-merger 相关项目开发

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

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

nimut/phpunit-merger

最新稳定版本:2.0.1

Composer 安装命令:

composer require nimut/phpunit-merger

包简介

Merge multiple PHPUnit reports into one file

README 文档

README

Latest Stable Version StyleCI GitHub Actions

Sometimes it is necessary to run multiple PHPUnit instances to execute all tests of a project. Unfortunately each run writes its own coverage and log reports. There is no support in PHPUnit to merge the reports of multiple runs.

This project provides two commands to merge coverage files as well as log files. It was designed to provide merged reports to e.g. SonarQube Scanner for further processing.

Installation

Use Composer to install the testing framework.

$ composer require --dev nimut/phpunit-merger

Composer will add the package as a dev requirement to your composer.json and install the package with its dependencies.

Usage

Coverage

The coverage command merges files containing PHP_CodeCoverage objects into one file in Clover XML format.

$ vendor/bin/phpunit-merger coverage <directory> [--html=<directory>] [<file>]

Arguments

  • directory: Directory containing one or multiple files with PHP_CodeCoverage objects
  • file: File where the merged result should be stored. Default: Standard output

Options

  • html: Directory where the HTML report should be stored
  • lowUpperBound: (optional) The lowUpperBound value to be used for HTML format
  • highLowerBound: (optional) The highLowerBound value to be used for HTML format

Log

The log command merges files in JUnit XML format into one file in JUnit XML format.

$ vendor/bin/phpunit-merger log <directory> <file>

Arguments

  • directory: Provides the directory containing one or multiple files in JUnit XML format
  • file: File where the merged result should be stored

统计信息

  • 总下载量: 1.52M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 50
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 49
  • Watchers: 3
  • Forks: 34
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-12-17