Skip to content

Extend PHPUnit to control the traffic light based on test results.

Notifications You must be signed in to change notification settings

vehikl/php-traffic-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Traffic Light

Requirements

  • PHP ^= 7.1
  • PHPUnit ^= 7.1

Installation

composer require vehikl/php-traffic-light

Usage

Implementation is extremely simple. Add the following to your phpunit.xml file:

<extensions>
    <extension class="PhpTrafficLight\TrafficLightExtension" />
</extensions>

Additionally, you must ensure that your environment has the following environment variables:

  • TRAFFIC_LIGHT_ENABLED - this determines if the plugin is enabled. This should only be true (1) on the mobbing computer.

That's it! The traffic light in the lounge should now reflect the state of the mobbing tests.

About

Extend PHPUnit to control the traffic light based on test results.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages