This package is part of WP-CLI. Add a Behat scenario in features/ for every fix or feature, plus a PHPUnit test in tests/ when the logic is unit-testable.
Run only the narrowest checks: composer phpcs -- <file>, composer phpstan, composer phpunit -- --filter <Test>, composer behat -- features/<name>.feature[:<line>]. Do not run the full composer test for a small change: it installs WordPress once per scenario and needs a database.