blainesch/li3_leaderboard

A leaderboard to show off which developers are creating unit tests

Installs: 11 104

Dependents: 0

Stars: 2

Watchers: 1

Language: PHP

v1.0.3 2013-01-10 01:23 UTC

README

A leaderboard to show off which developers are creating unit tests.

Build Status

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

Screenshot

Leaderboard