function test_test_run_complete

6.x test.drush.inc test_test_run_complete()
5.x test.drush.inc test_test_run_complete()

Command argument complete callback.

Return value

Array of test classes and groups.

File

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

Code

function test_test_run_complete() {
  if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_FULL) == DRUSH_BOOTSTRAP_DRUPAL_FULL && module_exists('simpletest')) {
    // Retrieve all tests and groups.
    list($groups, $all_tests) = drush_test_get_all_tests();
    return array('values' => array_keys($groups) + $all_tests);
  }
}