Make WordPress Core

Changeset 60737


Ignore:
Timestamp:
09/13/2025 03:23:36 PM (2 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Configure PHPUnit to fail on risky tests.

There should be no need for a risky test to go unseen. It usually signifies a problem in the associated test that needs to be addressed.

See #63167, #63932

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r60628 r60737  
    3131      # These files configure Composer. Changes could affect the outcome.
    3232      - 'composer.*'
    33       # This files affect the phpunit tests. Changes could affect the outcome.
     33      # These files affect the phpunit tests. Changes could affect the outcome.
    3434      - 'tests/phpunit/**'
     35      - 'tests/phpunit/multisite.xml'
     36      - 'phpunit.xml.dist'
    3537      # Confirm any changes to relevant workflow files.
    3638      - '.github/workflows/phpunit-tests.yml'
  • trunk/phpunit.xml.dist

    r58010 r60737  
    77        beStrictAboutTestsThatDoNotTestAnything="true"
    88        beStrictAboutOutputDuringTests="true"
     9        failOnRisky="true"
    910        convertErrorsToExceptions="true"
    1011        convertWarningsToExceptions="true"
  • trunk/tests/phpunit/multisite.xml

    r58010 r60737  
    77        beStrictAboutTestsThatDoNotTestAnything="true"
    88        beStrictAboutOutputDuringTests="true"
     9        failOnRisky="true"
    910        convertErrorsToExceptions="true"
    1011        convertWarningsToExceptions="true"
Note: See TracChangeset for help on using the changeset viewer.