Changeset 68 in tests
- Timestamp:
- 11/02/2007 06:26:36 AM (19 years ago)
- File:
-
- 1 edited
-
wp-test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-test.php
r64 r68 9 9 if (!defined('DIR_TESTDATA')) 10 10 define('DIR_TESTDATA', './wp-testdata'); 11 define('TEST_WP', true); 11 12 define('TEST_MU', (@$opts['v'] == 'mu')); 12 13 define('SAVEQUERIES', true); … … 81 82 } 82 83 83 // use -t option to run only one test class84 if (isset($opts['t']) && $opts['t']) {85 if (in_array($opts['t'], $classes)) {86 $classes = array($opts['t']);87 }88 }89 90 84 // hide errors during test runs, since they're captured and reported by the test framework 91 85 ini_set('display_errors', '0'); 92 86 // run the tests and print the results 93 $result = wptest_run_tests($classes );87 $result = wptest_run_tests($classes, @$opts['t']); 94 88 wptest_print_result($result); 95 89
Note: See TracChangeset
for help on using the changeset viewer.