Skip to content

Commit 420444d

Browse files
author
costdev
committed
Add --dont-report-useless-tests flag by default.
Risky tests cause "Failed" statuses on the "Hosting Tests results" page. As these don't provide insight into the functionality of WordPress, they should not be reported by default. If the reporting of risky tests is desired, a `WPT_PHPUNIT_CMD` value can be set in `.env`.
1 parent 1ae054d commit 420444d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$WPT_PHP_EXECUTABLE = getenv( 'WPT_PHP_EXECUTABLE' ) ? : 'php';
1616

1717
// This uses `||` to run PHPUnit when it is downloaded manually (like for PHP 5.6-7.0) rather than through Composer.
18-
$WPT_PHPUNIT_CMD = getenv( 'WPT_PHPUNIT_CMD' ) ? : 'cd ' . escapeshellarg( $WPT_TEST_DIR ) . ' && ' . $WPT_PHP_EXECUTABLE . ' ./vendor/phpunit/phpunit/phpunit || ' . $WPT_PHP_EXECUTABLE . ' phpunit.phar';
18+
$WPT_PHPUNIT_CMD = getenv( 'WPT_PHPUNIT_CMD' ) ? : 'cd ' . escapeshellarg( $WPT_TEST_DIR ) . ' && ' . $WPT_PHP_EXECUTABLE . ' ./vendor/phpunit/phpunit/phpunit --dont-report-useless-tests || ' . $WPT_PHP_EXECUTABLE . ' phpunit.phar --dont-report-useless-tests';
1919

2020
// Run phpunit in the test environment.
2121
if ( ! empty( $WPT_SSH_CONNECT ) ) {

0 commit comments

Comments
 (0)