lvlup-dev / testeye-phpunit
PHPUnit Hooks to keep an eye on your tests, via TestEye.io
0.3.1
2020-06-30 06:47 UTC
Requires
- php: ^7.3
- ext-curl: *
- guzzlehttp/guzzle: ^6.5
- phpunit/phpunit: ^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- vimeo/psalm: ^3.11
README
This is an extension for phpunit. It listens to your tests suites and upload your reports to TestEye.io.
Installation
You can install the package via composer:
composer require lvlup-dev/testeye-phpunit --dev
Usage
- Go to https://testeye.io/ and grab your project's token.
- Register the extension in your phpunit.xml file :
<extensions>
<extension class="Lvlup\TestEye\TestEyeHook">
<arguments>
<string>YOUR_TOKEN_HERE</string>
<string>https://testeye.io/report/phpunit</string>
</arguments>
</extension>
</extensions>
- Run your tests as usual, using ./vendor/bin/phpunit (it works with pest, too)
- Access your dashboard to see your report, in real-time.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email didier@lvlup.fr instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.