NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1137 most downloaded on Packagist
Find and report on slow tests in your PHPUnit test suite
Last release 4 years ago
no release in 18 months
Ships fairly regularly
a new release about every 8 months
Most releases are documented
notes for 9 of 12 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
13 releases · first in 2015
README documents working with Symfony Framework simple-phpunit
simple-phpunitPR #81 Reformat slow test case output for compatibility with PHPUnit --filter option
v3.3.0...v.4.0.0)stopOnSlow stops execution upon first slow test. Default: false.@slowThreshold 0 disables checks for individual tests.simple-phpunitThis is the last release compatible with PHP < 7.2 and PHPUnit < 8.0. SpeedTrap v5.0.0 will be upgrading to the PHPUnit Extension system instead of the TestListener system.
Despite being a new feature in v4.0.0, the stopOnSlow configuration will be removed in v5.0.0 because the new PHPUnit Extension system does not support Extensions stopping the test runner.
You may encounter a backwards compatibility break if you programmatically parse the console output from SpeedTrap.
Prior to 4.0 the slowness report displayed the qualified class name in a human-readable format:
1. 800ms to run JohnKary\PHPUnit\Listener\Tests\SomeSlowTest:testWithDataProvider with data set "Rock"
Starting at 4.0 the slowness report displays class names in a format ready to be used with PHPUnit's --filter option by adding slashes to the namespace delimiter and adding a colon between the class and method name:
1. 800ms to run JohnKary\\PHPUnit\\Listener\\Tests\\SomeSlowTest::testWithDataProvider with data set "Rock"
An individual slow test case can now be re-run by copying and pasting the output into a new command:
vendor/bin/phpunit --filter 'JohnKary\\PHPUnit\\Listener\\Tests\\SomeSlowTest::testWithDataProvider with data set "Rock"'
Note that PHPUnit uses single quotes for the --filter option value. See the --filter option documentation for all supported matching patterns.
One column per quarter.
Version 3.3 adds supports for PHPUnit 9.5+, and a way to enable or disable the SpeedTrap listener using environment variables.
Exclude testing PHPUnit 9 with unsupported PHP versions
Exclude testing PHPUnit 9 with unsupported PHP versions
Version 3.2 introduces supports for PHPUnit 9.0+. If your use of SpeedTrap depends on specific text output from SpeedTrap slowness report, see below wording changes that may require updating your implementation.
Added compatibility with PHPUnit 8.0+ via composer.json.
Added compatibility with PHPUnit 8.0+ via composer.json.
No changes required.
Link to RSpec repository
Link to RSpec repository
Version 3.0 introduces support for PHPUnit 7.0+ and PHP 7.1+.
Changes may be required if you have extended SpeedTrapListener. See UPGRADE.md for upgrading your subclass to support 3.0.
Version 2.0 introduces support for PHPUnit 6.0+, PHP 7.0+ and PSR-4 autoloading.
Version 2.0 introduces support for PHPUnit 6.0+, PHP 7.0+ and PSR-4 autoloading.
Changes are required if you have extended SpeedTrapListener. See UPGRADE.md for upgrading your subclass to support 2.0.
Nothing published for this version
Merge branch '1.0' into 1.1
Merge branch '1.0' into 1.1
PHPUnit 6 switched to using vendor namespaces.
PHPUnit 6 switched to using vendor namespaces.
If you require PHPUnit 6+ support please use phpunit-speedtrap
dev-master or 2.0 release branch.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →