mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
HTTP timeouts should cause some tests to be skipped, not failed
A number of the HTTP external tests can inconstantly fail. As the HTTP API is one that doesn't change often, this failure creates noise. With the goal of increasing the signal from the unit tests, these tests are now skipped if they timeout. A notice is added when running the external http tests so that the developer knows what skipped tests may mean here. See #33968 git-svn-id: https://develop.svn.wordpress.org/trunk@34848 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -164,6 +164,13 @@ class WP_PHPUnit_Util_Getopt extends PHPUnit_Util_Getopt {
|
||||
foreach ( $skipped_groups as $group_name => $skipped ) {
|
||||
echo sprintf( 'Not running %1$s tests. To execute these, use --group %1$s.', $group_name ) . PHP_EOL;
|
||||
}
|
||||
|
||||
if ( ! isset( $skipped_groups['external-http'] ) ){
|
||||
echo PHP_EOL;
|
||||
echo 'External HTTP skipped tests can be caused by timeouts.' . PHP_EOL;
|
||||
echo 'If this changeset inclues changes to HTTP, make sure there are no timeouts.' . PHP_EOL;
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
new WP_PHPUnit_Util_Getopt( $_SERVER['argv'] );
|
||||
|
||||
Reference in New Issue
Block a user