Add comprehensive testing framework for both single site and multisite WordPress environments

This commit is contained in:
2025-04-21 17:32:01 +01:00
parent 136f07d9c4
commit 8ed22642e2
11 changed files with 422 additions and 7 deletions

View File

@@ -7,9 +7,12 @@
"start": "wp-env start",
"stop": "wp-env stop",
"wp-env": "wp-env",
"multisite": "wp-env start --config=.wp-env.multisite.json",
"test:e2e": "cypress open --config-file tests/e2e/cypress.json",
"test:e2e:headless": "cypress run --config-file tests/e2e/cypress.json",
"setup:single": "bash bin/setup-test-env.sh single",
"setup:multisite": "bash bin/setup-test-env.sh multisite",
"test:single": "cypress open --config specPattern=cypress/e2e/single-site.cy.js",
"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",
"build": "./build.sh",
"lint:php": "composer run-script phpcs",
"lint:php:simple": "composer run-script phpcs:simple",