function drush_test_list

6.x test.drush.inc drush_test_list($groups)
4.x test.drush.inc drush_test_list($groups)
5.x test.drush.inc drush_test_list($groups)
1 call to drush_test_list()
drush_test_run in commands/core/test.drush.inc
Test-run command callback.

File

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

Code

function drush_test_list($groups) {
  $rows[] = array(dt('Command'), dt('Description'));
  $rows[] = array('-------', '-----------');
  foreach ($groups as $group_name => $group_tests) {
    foreach ($group_tests as $test_class => $test_info) {
      if (!isset($rows[$test_info['group']])) {
        $rows[$test_info['group']] = array($group_name, $test_info['group']);
      }
      $rows[] = array("  {$test_class}", "  {$test_info['name']}");
    }
  }
  return drush_print_table($rows, TRUE);
}