-
-
Notifications
You must be signed in to change notification settings - Fork 0
Testing a project
Greg Bowler edited this page May 18, 2026
·
1 revision
gt test runs the test suites configured in your project metadata and gives you one result summary at the end.
gt testThe command looks for common test scripts and runs each suite it finds.
At the moment that means:
-
composer.jsonwith ascripts.testentry, which runs ascomposer test -
package.jsonwith ascripts.testentry, which runs asnpm run test
Both suites are optional. If both are configured, gt test runs both of them even if the first one fails.
If your composer.json contains:
{
"scripts": {
"test": "vendor/bin/phpunit"
}
}then gt test will run:
composer testIf your package.json contains:
{
"scripts": {
"test": "vitest run"
}
}then gt test will also run:
npm run test- returns success when every discovered test suite passes
- returns failure when any discovered test suite fails
- returns failure when no supported test suites are configured
That makes it suitable for local development and for CI steps that want one command to cover both PHP and JavaScript tests.
For the full command list, continue with Command reference.
PHP.GT/GtCommand is the command-line entry point used by PHP.GT/WebEngine.