MDL-17842 removed slowtest support from unittest report - never used, not needed

This commit is contained in:
skodak
2009-01-10 14:02:31 +00:00
parent 760ab567d0
commit dbff568ed6
2 changed files with 5 additions and 10 deletions
+3 -6
View File
@@ -24,13 +24,11 @@ require_once($CFG->libdir . '/simpletestlib/test_case.php');
*/
class AutoGroupTest extends GroupTest {
var $thorough;
var $showsearch;
function AutoGroupTest($showsearch, $thorough, $test_name = null) {
function AutoGroupTest($showsearch, $test_name = null) {
$this->GroupTest($test_name);
$this->showsearch = $showsearch;
$this->thorough = $thorough;
}
function run(&$reporter) {
@@ -68,8 +66,7 @@ class AutoGroupTest extends GroupTest {
if ($file != 'CVS' && !in_array($file_path, $this->ignorefolders)) {
$this->_recurseFolders($file_path);
}
} elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path) ||
($this->thorough && preg_match('/simpletest(\/|\\\\)slowtest.*\.php$/', $file_path))) {
} elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path)) {
$s_count++;
// OK, found: this shows as a 'Notice' for any 'simpletest/test*.php' file.
@@ -216,4 +213,4 @@ class BadAutoGroupTest extends BadTest { }
class AutoGroupTestNotice extends Notice { }
class FindFileNotice extends Notice { }
?>
?>
+2 -4
View File
@@ -21,7 +21,6 @@ $path = optional_param('path', null, PARAM_PATH);
$showpasses = optional_param('showpasses', false, PARAM_BOOL);
$showsearch = optional_param('showsearch', false, PARAM_BOOL);
$rundbtests = optional_param('rundbtests', false, PARAM_BOOL);
$thorough = optional_param('thorough', false, PARAM_BOOL);
$addconfigprefix = optional_param('addconfigprefix', false, PARAM_RAW);
$setuptesttables = optional_param('setuptesttables', false, PARAM_BOOL);
$upgradetesttables = optional_param('upgradetesttables', false, PARAM_BOOL);
@@ -34,7 +33,7 @@ if ($setuptesttables || $continuesetuptesttables || $upgradetesttables) {
$CFG->xmlstrictheaders = false;
}
admin_externalpage_setup('reportsimpletest', '', array('showpasses' => $showpasses,
'showsearch' => $showsearch, 'thorough' => $thorough));
'showsearch' => $showsearch));
admin_externalpage_print_header();
$langfile = 'simpletest';
@@ -196,7 +195,7 @@ $CFG = $real_cfg;
if (!is_null($path)) {
// Create the group of tests.
$test = new AutoGroupTest($showsearch, $thorough);
$test = new AutoGroupTest($showsearch);
// OU specific. We use the _nonproject folder for stuff we want to
// keep in CVS, but which is not really relevant. It does no harm
@@ -265,7 +264,6 @@ echo '<form method="get" action="index.php">';
echo '<fieldset class="invisiblefieldset">';
echo '<p>'; print_checkbox('showpasses', 1, $showpasses, get_string('showpasses', $langfile)); echo '</p>';
echo '<p>'; print_checkbox('showsearch', 1, $showsearch, get_string('showsearch', $langfile)); echo '</p>';
echo '<p>'; print_checkbox('thorough', 1, $thorough, get_string('thorough', $langfile)); echo '</p>';
echo '<p>';
echo '<label for="path">', get_string('onlytest', $langfile), '</label> ';
echo '<input type="text" id="path" name="path" value="', $displaypath, '" size="40" />';