test from the command line
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1087 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
58b80f5a72
commit
e124a9512d
1 changed files with 27 additions and 0 deletions
27
contrib/simpletest/standalone.php
Normal file
27
contrib/simpletest/standalone.php
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
#require_once('lib/simpletest/autorun.php');
|
||||||
|
require_once('simpletest/web_tester.php');
|
||||||
|
require_once('simpletest/reporter.php');
|
||||||
|
|
||||||
|
require_once('config.php');
|
||||||
|
|
||||||
|
class SectionReporter extends TextReporter {
|
||||||
|
function paintGroupStart($name, $size) {
|
||||||
|
parent::paintGroupStart($name, $size);
|
||||||
|
print "\n** $name\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// }}} */
|
||||||
|
|
||||||
|
class AllTests extends TestSuite {
|
||||||
|
function AllTests() {
|
||||||
|
$this->TestSuite('All tests');
|
||||||
|
foreach(glob("ext/*/test.php") as $file) {
|
||||||
|
$this->addFile($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$all = new AllTests();
|
||||||
|
$all->run(new SectionReporter());
|
||||||
|
?>
|
Reference in a new issue