Skip to content
Snippets Groups Projects
Commit 77a6a262 authored by catch's avatar catch
Browse files

Issue #2421335 by alexpott: Using run-tests.sh with the --list option should...

Issue #2421335 by alexpott: Using run-tests.sh with the --list option should not require a db (of any kind)
parent 9dd8de4d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -41,6 +41,20 @@ ...@@ -41,6 +41,20 @@
exit; exit;
} }
if ($args['list']) {
// Display all available tests.
echo "\nAvailable test groups & classes\n";
echo "-------------------------------\n\n";
$groups = simpletest_test_get_all($args['module']);
foreach ($groups as $group => $tests) {
echo $group . "\n";
foreach ($tests as $class => $info) {
echo " - $class\n";
}
}
exit;
}
simpletest_script_setup_database(TRUE); simpletest_script_setup_database(TRUE);
if ($args['clean']) { if ($args['clean']) {
...@@ -56,20 +70,6 @@ ...@@ -56,20 +70,6 @@
exit; exit;
} }
if ($args['list']) {
// Display all available tests.
echo "\nAvailable test groups & classes\n";
echo "-------------------------------\n\n";
$groups = simpletest_test_get_all($args['module']);
foreach ($groups as $group => $tests) {
echo $group . "\n";
foreach ($tests as $class => $info) {
echo " - $class\n";
}
}
exit;
}
$test_list = simpletest_script_get_test_list(); $test_list = simpletest_script_get_test_list();
// Try to allocate unlimited time to run the tests. // Try to allocate unlimited time to run the tests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment