Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tflori/phpunit-printer
Different printers for phpunit
https://github.com/tflori/phpunit-printer
Last synced: about 1 month ago
JSON representation
Different printers for phpunit
- Host: GitHub
- URL: https://github.com/tflori/phpunit-printer
- Owner: tflori
- Created: 2022-03-14T17:41:29.000Z (almost 3 years ago)
- Default Branch: dev
- Last Pushed: 2022-03-18T10:03:37.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T12:19:56.756Z (about 2 months ago)
- Language: PHP
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhpUnitPrinter
This library holds different printers for phpunit.
ok ok - at the moment there is only one: `TextPrinter`
# How to install
Use composer:
```console
$ composer require tflori/phpunit-printer
```> note that there is no version defined - composer will automatically install the correct version for your
> php and phpunit version## Using different phpunit versions in CI
You are maybe developing a library. Then you should not commit the `composer.lock` and you are probably
executing your unit tests on different php and phpunit versions. You will then need to modify your
`composer.json` manually to use any matching version of phpunit and phpunit-printer:```json
{
"require": {
"phpunit/phpunit": "*",
"tflori/phpunit-printer": "*"
}
}
```# How to use
You can now start using it by passing the printer to the phpunit configuration.
Via commandline:
```console
$ phpunit --printer PhpUnitPrinter\TextPrinter
```Via configuration file:
```xml
```
## Available printer
### TextPrinter
The text printer is a copy of a script I found long time ago on the net. I don't remember where I found
it, and it didn't have annotations.> If someone knows who has written that printer I would appreciate a hint to honor him in the author
> section.Example:
![Text Printer](screenshots/text-printer.png)