Custom simpletest runner
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
runner.php

README

SimpleTest Runner
-----------------

Custom Runner and Reporter for SimpleTest.

Allow select test to run individually.

Usage
-----

include('simpletest/autorun.php');

class AllTests extends SimpleTestRunner_TestSuite
{
    public function __construct() 
    {
        $this->addFile(..);
    }
}

SimpleTest::prefer(new SimpleTestRunner_Form());
$suites = new AllTests();
SimpleTestRunner_CustomDisplay::$allTests = $suites->getAllTests();

Advanded Usage
--------------

You can attach an "observer" on display.

class MyObserver implements SimpleTestRunner_Observer 
{
    public function renderHeader()
    {
        echo '<script type="text/javacript" src="my.js"></script>';
    }

    public function render()
    {
        echo '';
    }
}

Useful if you are using Http_request2 pear package and you want to display all 
http request on test. But it's optionnal.

Support
-------

#af83@irc.freenode.net and ping francois2 or moa3 :)

Copyright
---------

Copyright (c) 2010 AF83

Authors
-------

Luc-Pascal Ceccaldi <lpceccaldi@af83.com>
François de Metz <fdemetz@af83.com>

License
-------

Copyright (C) 2010 AF83
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA