blainesch / li3_leaderboard
A leaderboard to show off which developers are creating unit tests
Installs: 15 824
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Type:lithium-library
This package is not auto-updated.
Last update: 2024-11-03 03:30:06 UTC
README
A leaderboard to show off which developers are creating unit tests.
Installation
Dependencies
This uses git blame
to determine who created the test, so GIT is a dependency.
Composer
{ "require": { ... "blainesch/li3_leaderboard": "dev-master" ... } }
php composer.phar install
Submodule
git submodule add git://github.com/BlaineSch/li3_leaderboard.git libraries/li3_leaderboard
Clone Directly
git clone git://github.com/BlaineSch/li3_leaderboard.git libraries/li3_leaderboard
Setting up
In your libraries.php file:
<?php // ... if(!lithium\core\Environment::is('production')) { Libraries::add('li3_leaderboard', array( 'paths' => array( dirname(dirname(__DIR__)) . '/tests/', ), 'files' => array( '/Test\.php$/' => '/function test/', '/\.feature$/' => '/Scenario:/', ), )); } // ... ?>
Running
To view the results simply view:
localhost/testLeaderboard