blainesch/li3_leaderboard

A leaderboard to show off which developers are creating unit tests


Keywords
testing, test, lithium, li3, leaderboard, leader
License
DSDP

Documentation

Lithium Leaderboard

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