Add WordPress Playground and WP Performance Tests integration

This commit is contained in:
2025-04-21 22:22:19 +01:00
parent 824f2a97e8
commit 572c23df89
5 changed files with 254 additions and 0 deletions

View File

@@ -13,6 +13,10 @@
"test:single:headless": "cypress run --config specPattern=cypress/e2e/single-site.cy.js",
"test:multisite": "cypress open --config specPattern=cypress/e2e/multisite.cy.js",
"test:multisite:headless": "cypress run --config specPattern=cypress/e2e/multisite.cy.js",
"playground:single": "wp-playground start --blueprint playground/blueprint.json --port 8888",
"playground:multisite": "wp-playground start --blueprint playground/multisite-blueprint.json --port 8888",
"test:playground:single": "npm run playground:single & sleep 10 && npm run test:single:headless",
"test:playground:multisite": "npm run playground:multisite & sleep 10 && npm run test:multisite:headless",
"build": "./build.sh",
"lint:php": "composer run-script phpcs",
"lint:php:simple": "composer run-script phpcs:simple",