]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17842 removed slowtest support from unittest report - never used, not needed
authorskodak <skodak>
Sat, 10 Jan 2009 14:02:31 +0000 (14:02 +0000)
committerskodak <skodak>
Sat, 10 Jan 2009 14:02:31 +0000 (14:02 +0000)
admin/report/unittest/ex_simple_test.php
admin/report/unittest/index.php

index 49093e6b29ee04573c90c09589ee87f1aaf421f5..de1504d654aefeb22f31a7204f5451098314bfe0 100644 (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 { }
-?>
\ No newline at end of file
+?>
index fffc4006d25a395e0075e9110f2b5e1d758c618c..f8ccc9386c20495b8d560aca6bcd6a4aeedcf3db 100644 (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" />';