Skip to content

06. Package Development & Testing

Huement edited this page Jul 11, 2026 · 1 revision

If you are contributing to StatComm or running local feature modifications, you can spin up the full testing sandbox locally.

1. Testing Local Synced Links

To tie a local fork of this plugin to your active blog workspace for debugging, configure a path repository inside your blog's root composer.json file:

"repositories": [
    {
        "type": "path",
        "url": "addons/statcomm",
        "options": {
            "symlink": true
        }
    }
],
"require": {
    "huement/statcomm": "*"
}

Run composer update huement/statcomm to generate a live, active symlink shortcut.

2. Running the Isolated Test Suite

StatComm features full unit and feature coverage driven by Pest PHP and Orchestra Testbench.

To run the isolated tests, navigate directly inside the addon directory via your terminal (or your Laravel Sail Docker terminal) and initialize the local package dependencies:

cd addons/statcomm
composer install
./vendor/bin/pest

Clone this wiki locally