johnkary/phpunit-speedtrap
Find and report on slow tests in your PHPUnit test suite
v4.0.1
40M downloads/mo
#1021 most downloaded on Packagist
johnkary/phpunit-speedtrap
What this package is like to depend on
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
11 years old
13 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · Mar 2015 to Oct 2022Releases
latest 13-
v4.0.117 Oct 2022 -
v4.0.003 May 2021Release notes
Open source →- Changelog (
v3.3.0...v.4.0.0) - PR #81 Reformat slow test case output for compatibility with PHPUnit --filter option
- PR #82 New option
stopOnSlowstops execution upon first slow test. Default: false. - PR #84 New annotation option
@slowThreshold 0disables checks for individual tests. - README documents incompatibility with Symfony Framework
simple-phpunit
This 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
stopOnSlowconfiguration will be removed in v5.0.0 because the new PHPUnit Extension system does not support Extensions stopping the test runner.BC Break: Slowness report changes formatting of slow class names
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
--filteroption value. See the --filter option documentation for all supported matching patterns.Release notes
Open source →- Changelog (
v3.3.0...v.4.0.0) - PR #81 Reformat slow test case output for compatibility with PHPUnit --filter option
- PR #82 New option
stopOnSlowstops execution upon first slow test. Default: false. - PR #84 New annotation option
@slowThreshold 0disables checks for individual tests.
- Changelog (
-
v3.3.018 Dec 2020Release notes
Open source →Version 3.3 adds supports for PHPUnit 9.5+, and a way to enable or disable the SpeedTrap listener using environment variables.
-
v3.2.012 Feb 2020Release notes
Open source →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.
- PR #57 Wording change to slowness report in renderHeader()
-
v3.1.024 Feb 2019Release notes
Open source →Added compatibility with PHPUnit 8.0+ via composer.json.
Upgrade 3.0 to 3.1
No changes required.
-
v3.0.024 Feb 2018Release notes
Open source →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.
- PR #41 Make compatible with phpunit 7.x
-
v2.0.006 Dec 2017Release notes
Open source →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.
-
v2.0.0-BETA117 Mar 2017 pre-releaseNothing published for this version
-
v1.1.025 Mar 2017 -
v1.0.325 Mar 2017Release notes
Open source →PHPUnit 6 switched to using vendor namespaces.
If you require PHPUnit 6+ support please use phpunit-speedtrap
dev-master or 2.0 release branch. -
v1.0.213 Feb 2017Nothing published for this version
-
v1.0.113 Sep 2015Nothing published for this version
-
v1.0.021 Mar 2015Nothing published for this version