Skip to:
Content

BuddyPress.org

Changeset 13720 for trunk/package.json


Ignore:
Timestamp:
01/31/2024 08:09:06 PM (18 months ago)
Author:
imath
Message:

Update wp-env to version 9.0.0 & adapt the PHPUnit tests suite to it

  • Update PHPUnit related npm scripts for wp-env 9.0.0.
  • Create test_multi: a new composer script to run Multisite Unit tests.
  • Remove our composer dependency to wp-phpunit/wp-phpunit.
  • Update the PHPUnit tests suite so that it stops using wp-phpunit/wp-phpunit when it's within the wp-env context.
  • Remove no more used PHPUnit specific configuration files.

Fixes #9053
Closes https://github.com/buddypress/buddypress/pull/211

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r13703 r13720  
    99        "@wordpress/browserslist-config": "^5.31.0",
    1010        "@wordpress/scripts": "^26.19.0",
    11         "@wordpress/env": "^5.6.0",
     11        "@wordpress/env": "^9.0.0",
    1212        "@wordpress/stylelint-config": "~19.1.0",
    1313        "autoprefixer": "^9.8.8",
     
    5252        "build:admin": "wp-scripts build --webpack-src-dir=src/js/admin --config src/js/admin/webpack.config.js && grunt move:admin:js",
    5353        "wp-env": "wp-env",
    54         "test-php": "npm run wp-env run phpunit 'php /var/www/html/wp-content/plugins/buddypress/vendor/phpunit/phpunit/phpunit -c /var/www/html/wp-content/plugins/buddypress/tests/phpunit/env.xml'",
    55         "test-php:group": "npm run wp-env run phpunit 'php /var/www/html/wp-content/plugins/buddypress/vendor/phpunit/phpunit/phpunit -c /var/www/html/wp-content/plugins/buddypress/tests/phpunit/env.xml --group $npm_confi_g'",
    56         "test-php-multisite": "npm run wp-env run phpunit 'php /var/www/html/wp-content/plugins/buddypress/vendor/phpunit/phpunit/phpunit -c /var/www/html/wp-content/plugins/buddypress/tests/phpunit/env.multisite.xml'",
    57         "test-php-multisite:group": "npm run wp-env run phpunit 'php /var/www/html/wp-content/plugins/buddypress/vendor/phpunit/phpunit/phpunit -c /var/www/html/wp-content/plugins/buddypress/tests/phpunit/env.multisite.xml --group $npm_confi_g'",
     54        "test-php": "npm run wp-env run cli -- --env-cwd=wp-content/plugins/buddypress composer test",
     55        "test-php:group": "npm run wp-env run cli -- --env-cwd=wp-content/plugins/buddypress composer test -- -- --group ",
     56        "test-php-multisite": "npm run wp-env run cli -- --env-cwd=wp-content/plugins/buddypress composer test_multi",
     57        "test-php-multisite:group": "npm run wp-env run cli -- --env-cwd=wp-content/plugins/buddypress composer test_multi -- -- --group ",
    5858        "download:cli": "curl -L -o 'cli-archive.zip' https://github.com/buddypress/wp-cli-buddypress/archive/2.0.2.zip && unzip -qq cli-archive.zip && mv wp-cli-buddypress-2.0.2 build/cli && rm cli-archive.zip",
    5959        "download:rest": "curl -L -o 'rest-archive.zip' https://github.com/buddypress/BP-REST/archive/master.zip && unzip -qq rest-archive.zip && mv BP-REST-master build/bp-rest && rm rest-archive.zip"
Note: See TracChangeset for help on using the changeset viewer.