oscarricardosan / phpunitg-laravel-package by oscarricardosan

Phpunit test management package, in multiple app in local environment.
605
0
1
Package Data
Maintainer Username: oscarricardosan
Maintainer Contact: oscarricardosan@gmail.com (oscarricardosan)
Package Create Date: 2017-08-06
Package Last Update: 2018-04-23
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:04:51
Package Statistics
Total Downloads: 605
Monthly Downloads: 4
Daily Downloads: 1
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

PhpunitG Package

Client package for https://github.com/oscarricardosan/phpunitg-laravel-dashboard .

Install

  1. In your terminal:
$ composer require --dev oscarricardosan/phpunitg_laravel
  1. 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
  1. Add the service provider to your config/app.php file:
 \Oscarricardosan\PhpunitgLaravel\OscarricardosanPhpunitgServiceProvider::class
  1. 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...}
  1. In the methods that will be scanned put @test
/**
* @test
*/
public function is_index_working(){...My code...}