Skip to content

Print tests result in JSON in PHPUnit 10+ so other tools can use it

Notifications You must be signed in to change notification settings

TomasVotruba/phpunit-json-result

Repository files navigation

PHPUnit Json Result Printer

Other PHP CLI tool can communicate with API using JSON. Why not PHPUnit?

This package requires PHPUnit 10+ and PHP 8.1+.


Install

composer require --dev tomasvotruba/phpunit-json-result-printer

Usage

Register extension in your phpunit.xml file:

<extensions>
    <bootstrap class="TomasVotruba\PHPUnitJsonResultPrinter\PHPUnitJsonResultPrinterExtension" />
</extensions>

About

Print tests result in JSON in PHPUnit 10+ so other tools can use it

Topics

Resources

Stars

Watchers

Forks

Languages