Skip to content

make testrunner.sh in host-tools directory #260

Open

Description

@kittenkamala

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

Activity

  1. moved this from In progress to Ready in Hosting Team WCUS 2026on Aug 12, 2026
  2. ramonfincken commented on Aug 20, 2026

    @ramonfincken

    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
    `

  3. iarif4u commented on Oct 2, 2026

    @iarif4u
    Contributor

    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.

  4. aialvi commented on Oct 2, 2026

    @aialvi

    @iarif4u Sure. I started working on it but got busy later. You can take over.

  5. iarif4u commented on Oct 2, 2026

    @iarif4u
    Contributor

    Thanks @aialvi! #346 now closes #259 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions