function drush_test_get_all_tests

6.x test.drush.inc drush_test_get_all_tests()
4.x test.drush.inc drush_test_get_all_tests()
5.x test.drush.inc drush_test_get_all_tests()
2 calls to drush_test_get_all_tests()
drush_test_run in commands/core/test.drush.inc
Test-run command callback.
test_test_run_complete in commands/core/test.drush.inc
Command argument complete callback.

File

commands/core/test.drush.inc, line 241
Simpletest module drush integration.

Code

function drush_test_get_all_tests() {
  if (function_exists('simpletest_get_all_tests')) {
    $all_tests = simpletest_get_all_tests();
    $groups = simpletest_drush_test_groups($all_tests);
  }
  else {
    $groups = simpletest_test_get_all();
    $all_tests = array();
    foreach ($groups as $group) {
      $all_tests = array_merge($all_tests, array_keys($group));
    }
  }
  return array($groups, $all_tests);
}