百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

phpunit-pretty-print

> 测试质量
开源

✅ 让您的 PHPUnit 输出变得漂亮

184 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

✅ 让您的 PHPUnit 输出变得漂亮

phpunit-pretty-print

✅ Make your PHPUnit output beautiful

Installation

bash
composer require sempro/phpunit-pretty-print --dev

This package requires >=7.0.0 of PHPUnit.

If you're running on 6.x, please use version 1.0.3.

If you are running on 9.x use the \Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9 class

Usage

You can specify the printer to use on the phpunit command line:

For PhpUnit = 9, use the following:

bash
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/

Optionally, you can add it to your project's phpunit.xml file instead:

xml

Optional

To view progress while tests are running you can set PHPUNIT_PRETTY_PRINT_PROGRESS=true as environment variable on your server or within your phpunit.xml config file.

xml

    
        
    

License

MIT © Sempro AS

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPphpphp7phpunitphpunit-pretty-print

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类测试质量
定价开源

> 相关工具

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.