Make WordPress Core

Changeset 54355 for trunk/composer.json


Ignore:
Timestamp:
09/29/2022 02:43:06 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Disable process timeout when running PHPUnit tests via Composer.

When running the full test suite locally via npm run grunt phpunit or composer test, it is not uncommon for the test run to exceed the Composer's default timeout, causing an error in the middle of the test output:

The process "..." exceeded the timeout of 300 seconds.

This commit disables the process timeout for the composer test command, allowing the test run to complete successfully.

Follow-up to [47881], [51016].

Props ironprogrammer, robinwpdeveloper, SergeyBiryukov.
Fixes #55919.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r52425 r54355  
    3030        "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",
    3131        "lint:errors": "@lint -n",
    32         "test": "@php ./vendor/phpunit/phpunit/phpunit"
     32        "test": [ "Composer\\Config::disableProcessTimeout", "@php ./vendor/phpunit/phpunit/phpunit" ]
    3333    }
    3434}
Note: See TracChangeset for help on using the changeset viewer.