You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a bash script with commands (like below) that hosts can use to run the testing and reporting process in one step inside the host-tools directory
This one is for running tests and reporting once the test runner is already set up.
#script to update git, run tests, make report and clean up files once test runner is configured.
cd /home/wptestrunner/phpunit-test-runner/ #file path to test runner directory, change if needed
git pull
git checkout master
source .env #credentials must already be saved in env file
php prepare.php
php test.php
php report.php #report bot must already be configured
php cleanup.php
I'd like to take this one at today's Contributor Day. I run a similar wrapper on our hosting servers. I'll open a PR that adds host-tools/testrunner.sh. It will also create the host-tools/ folder from #259, since that has no PR yet. @aialvi, please tell me if you already have work in progress on #259.
Activity
ramonfincken commentedon Aug 20, 2026
We use this one, the only difference is the git and we explicitly use the php full path, so its worth comparing the git commands
`git pull origin master
source .env
/usr/local/bin/php -q cleanup.php
/usr/local/bin/php -q klarned_prepare.php
/usr/local/bin/php -q test.php
/usr/local/bin/php -q report.php
`
iarif4u commentedon Oct 2, 2026
I'd like to take this one at today's Contributor Day. I run a similar wrapper on our hosting servers. I'll open a PR that adds
host-tools/testrunner.sh. It will also create thehost-tools/folder from #259, since that has no PR yet. @aialvi, please tell me if you already have work in progress on #259.aialvi commentedon Oct 2, 2026
@iarif4u Sure. I started working on it but got busy later. You can take over.
iarif4u commentedon Oct 2, 2026
Thanks @aialvi! #346 now closes #259 too.