You can target specific parts of the test suite by passing the path to the PHPUnit command within the Docker container.
Run only unit tests:
docker run --rm -v "$(pwd)":/var/www laravel-spy-test vendor/bin/phpunit tests/Unit
Run only feature tests:
docker run --rm -v "$(pwd)":/var/www laravel-spy-test vendor/bin/phpunit tests/Feature
Run a specific test file:
docker run --rm -v "$(pwd)":/var/www laravel-spy-test vendor/bin/phpunit tests/Unit/LaravelSpyTest.php
Run with coverage (requires xdebug):
docker run --rm -v "$(pwd)":/var/www laravel-spy-test vendor/bin/phpunit --coverage-html coverage