承接 previousnext/phpunit-splitter 相关项目开发

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

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

previousnext/phpunit-splitter

最新稳定版本:0.3.0

Composer 安装命令:

composer create-project previousnext/phpunit-splitter

包简介

Splits phpunit tests

README 文档

README

Allows you to split your PHPUnit tests by timings.

Usage

Generate a timing file:

phpunit --cache-result --results-files=.phpunit.cache/test-results*

List your tests:

phpunit --list-tests-xml=tests.xml 

This generates an XML file with a list of tests. You can add --testsuite to limit the tests to a specific suite.

Split the tests in 2 groups and get the first group (0):

phpunit-splitter 2 0 --tests-file=tests.xml --results-files=.phpunit.cache/test-results*

Split the tests in 4 groups and get the third group (2):

phpunit-splitter 4 2 --tests-file=tests.xml --results-files=.phpunit.cache/test-results*

Pass the results to PHPUnit:

./phpunit-splitter 2 0 --tests-file=tests/fixtures/tests.xml --results-files=.phpunit.cache/test-results* | xargs ./vendor/bin/phpunit 
done

Output the test list as JSON:

./phpunit-splitter 2 0 --json --tests-file=tests/fixtures/tests.xml --results-files=.phpunit.cache/test-results*

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-10-05