function drush_test_run_class

6.x test.drush.inc drush_test_run_class($class)
5.x test.drush.inc drush_test_run_class($class)

Run a test class via drush_invoke_process()

Parameters

string $class: The test class to run.

Return value

If the command could not be completed successfully, FALSE. If the command was completed, this will return an associative array containing the results of the API call. @see drush_backend_get_result()

1 call to drush_test_run_class()
drush_test_run in commands/core/test.drush.inc
Test-run command callback.

File

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

Code

function drush_test_run_class($class) {
  $backend_options = array(
    'output-label' => "$class ",
    'integrate' => TRUE,
    'output' => TRUE,
  );
  $return = drush_invoke_process('@self', 'test-run', array($class), drush_redispatch_get_options(), $backend_options);
  return $return;
}