Make WordPress Core

Changeset 68 in tests


Ignore:
Timestamp:
11/02/2007 06:26:36 AM (19 years ago)
Author:
tellyworth
Message:

cleaner way of running a single test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r64 r68  
    99if (!defined('DIR_TESTDATA'))
    1010    define('DIR_TESTDATA', './wp-testdata');
     11define('TEST_WP', true);
    1112define('TEST_MU', (@$opts['v'] == 'mu'));
    1213define('SAVEQUERIES', true);
     
    8182}
    8283
    83 // use -t option to run only one test class
    84 if (isset($opts['t']) && $opts['t']) {
    85     if (in_array($opts['t'], $classes)) {
    86         $classes = array($opts['t']);
    87     }
    88 }
    89 
    9084// hide errors during test runs, since they're captured and reported by the test framework
    9185ini_set('display_errors', '0');
    9286// run the tests and print the results
    93 $result = wptest_run_tests($classes);
     87$result = wptest_run_tests($classes, @$opts['t']);
    9488wptest_print_result($result);
    9589
Note: See TracChangeset for help on using the changeset viewer.