BUGFIX: Fix TestRunner coverage pattern to work as documented (Fixes QA scripts too) (from r100116)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105550 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 03:43:11 +00:00
parent 75b98970e4
commit ba4ad49422

View File

@ -40,7 +40,7 @@ class TestRunner extends Controller {
static $url_handlers = array( static $url_handlers = array(
'' => 'browse', '' => 'browse',
'coverage/module/$ModuleName' => 'coverageModule', 'coverage/module/$ModuleName' => 'coverageModule',
'coverage/$TestCase' => 'coverageOnly', 'coverage/$TestCase!' => 'coverageOnly',
'coverage' => 'coverageAll', 'coverage' => 'coverageAll',
'startsession' => 'startsession', 'startsession' => 'startsession',
'endsession' => 'endsession', 'endsession' => 'endsession',
@ -153,7 +153,7 @@ class TestRunner extends Controller {
* Run a coverage test across all modules * Run a coverage test across all modules
*/ */
function coverageAll() { function coverageAll() {
ManifestBuilder::load_all_classes(); ManifestBuilder::load_all_classes();
$this->all(true); $this->all(true);
} }
@ -391,14 +391,14 @@ HTML;
// This class is here to help with documentation. // This class is here to help with documentation.
if(!hasPhpUnit()) { if(!hasPhpUnit()) {
/** /**
* PHPUnit is a testing framework that can be installed using PEAR. * PHPUnit is a testing framework that can be installed using PEAR.
* It's not bundled with Sapphire, you will need to install it yourself. * It's not bundled with Sapphire, you will need to install it yourself.
* *
* @package sapphire * @package sapphire
* @subpackage testing * @subpackage testing
*/ */
class PHPUnit_Framework_TestCase { class PHPUnit_Framework_TestCase {
}
} }
}