Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Unify test command naming with wordpress-develop test commands
  • Loading branch information
JanJakes committed Aug 6, 2025
commit 4a931770642c148508baf8134306a4126cd1722e
4 changes: 2 additions & 2 deletions .github/workflows/wp-tests-phpunit-run.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wrap the "composer run wp-tests-phpunit" command to process tests
* Wrap the "composer run wp-tests-php" command to process tests
* that are expected to error and fail at the moment.
*
* This makes sure that the CI job passes, while explicitly tracking
Expand Down Expand Up @@ -108,7 +108,7 @@ console.log( 'Expected failures:', expectedFailures );
try {
try {
execSync(
`composer run wp-test-phpunit -- --log-junit=phpunit-results.xml --verbose`,
`composer run wp-test-php -- --log-junit=phpunit-results.xml --verbose`,
{ stdio: 'inherit' }
);
console.log( '\n⚠️ All tests passed, checking if expected errors/failures occurred...' );
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-tests-phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: WordPress Tests
name: WordPress PHPUnit Tests

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"npm --prefix wordpress run env:start",
"npm --prefix wordpress run env:install"
],
"wp-test-phpunit": [
"wp-test-php": [
"rm -rf wordpress/src/wp-content/database && npm --prefix wordpress run test:php --"
],
"wp-test-clean": [
Expand Down