https://github.com/mheap/phpunit-github-actions-printer
https://github.com/mheap/phpunit-github-actions-printer
github-actions phpunit-printer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mheap/phpunit-github-actions-printer
- Owner: mheap
- Created: 2020-01-18T15:21:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T12:05:09.000Z (almost 4 years ago)
- Last Synced: 2024-04-15T12:32:43.180Z (about 1 year ago)
- Topics: github-actions, phpunit-printer
- Language: PHP
- Homepage:
- Size: 228 KB
- Stars: 70
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## phpunit-github-actions-printer
> There's a zero-config way to achieve this at [mheap/phpunit-matcher-action](https://github.com/mheap/phpunit-matcher-action)
This is a PHPUnit printer that uses the `::error` and `::warning` functionality of GitHub Actions to add annotiations for failing test runs. It's main differentiator to the above is that it supports adding warnings in addition to errors.


> If you're interested in learning more about GitHub Actions, [sign up here](https://michaelheap.com/building-github-actions/)
## Usage
Add this printer to your project
```bash
composer require --dev mheap/phpunit-github-actions-printer
```When you run your tests, specify `mheap\GithubActionsReporter\Printer` as the printer to use
```bash
./vendor/bin/phpunit --printer mheap\\GithubActionsReporter\\Printer /path/to/tests
```