Example #1
0
	-p <php>    Specify PHP-CGI executable to run.
	-c <path>   Look for php.ini in directory <path> or use <path> as php.ini.
	-d key=val  Define INI entry 'key' with value 'val'.
	-l <path>   Specify path to shared library files (LD_LIBRARY_PATH)
	-e <name>   Load php environment <name>
	-s          Show information about skipped tests

<?php 
}
/**
 * Execute tests
 */
try {
    @unlink(__DIR__ . '/coverage.tmp');
    // intentionally @
    $manager = new NetteTestRunner();
    $manager->parseConfigFile();
    $manager->parseArguments();
    $res = $manager->run();
    die($res ? 0 : 1);
} catch (Exception $e) {
    echo 'Error: ', $e->getMessage(), "\n";
    die(2);
}
/**
 * Test runner.
 *
 * @author     David Grudl
 * @package    Nette\Test
 */
class NetteTestRunner
Example #2
0
    ?>
Usage:
	php RunTests.php [options] [file or directory]

Options:
	-p <php>    Specify PHP-CGI executable to run.
	-c <path>   Look for php.ini in directory <path> or use <path> as php.ini.
	-d key=val  Define INI entry 'key' with value 'val'.

<?php 
}
/**
 * Execute tests
 */
try {
    $manager = new NetteTestRunner();
    $manager->parseArguments();
    $manager->run();
} catch (Exception $e) {
    echo 'Error: ', $e->getMessage(), "\n";
    die(-1);
}
/**
 * Test runner.
 *
 * @author     David Grudl
 * @package    Nette\Test
 */
class NetteTestRunner
{
    const OUTPUT = 'output';