From c5acb6c053ddf7428c0a56af61e26732a51685d4 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 16 May 2007 01:54:57 +0000 Subject: update phing simpletest task --- buildscripts/phing/tasks/PradoSimpleTestTask.php | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 buildscripts/phing/tasks/PradoSimpleTestTask.php (limited to 'buildscripts/phing/tasks') diff --git a/buildscripts/phing/tasks/PradoSimpleTestTask.php b/buildscripts/phing/tasks/PradoSimpleTestTask.php new file mode 100644 index 00000000..4d6317b5 --- /dev/null +++ b/buildscripts/phing/tasks/PradoSimpleTestTask.php @@ -0,0 +1,40 @@ +_appdir=$value; + } + + function init() + { + $tools= realpath(dirname(__FILE__).'/../../../tests/test_tools/'); + include_once "$tools/unit_tests.php"; + + if (!class_exists('SimpleReporter',false)) + throw new BuildException("SimpleTestTask depends on SimpleTest package being installed.", $this->getLocation()); + + require_once 'phing/tasks/ext/simpletest/SimpleTestCountResultFormatter.php'; + require_once 'phing/tasks/ext/simpletest/SimpleTestFormatterElement.php'; + } + + function main() + { + if($this->_appdir) + { + $app = new TShellApplication($this->_appdir); + $app->run(); + } + parent::main(); + } +} + +?> \ No newline at end of file -- cgit v1.2.3