oscarricardosan / phpunitg_laravel
Phpunit test management package, in multiple app in local environment.
v1.0.24
2018-04-13 14:41 UTC
Requires
- nette/reflection: ^2.4
This package is not auto-updated.
Last update: 2025-02-02 05:53:57 UTC
README
Client package for https://github.com/oscarricardosan/phpunitg-laravel-dashboard .
Install
- In your terminal:
$ composer require --dev oscarricardosan/phpunitg_laravel
- When you register the application with https://github.com/oscarricardosan/phpunitg-laravel-dashboard it generates a token which you must put in the .env of the application.
PHPUNITG_TOKEN=Generated_token
- Add the service provider to your config/app.php file:
\Oscarricardosan\PhpunitgLaravel\OscarricardosanPhpunitgServiceProvider::class
- Select the tests that you want to be scanned and put @phpunitG in phpDoc comments, with this you indicate to the package that this class must be scanned.
Optional, after @phpunitG you can put text that will serve as a tag name, if you do not put it it will remain as "No Tag".
<?php namespace App; /** * @phpunitG Tag name */ class ExampleTest extends TestCase{...My code...}
- In the methods that will be scanned put @test
/** * @test */ public function is_index_working(){...My code...}