PackageTrack
Sign in Get early access

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 2022
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. v4.0.1 17 Oct 2022
    Release notes
    • README documents working with Symfony Framework simple-phpunit
    Open source →
  2. v4.0.0 03 May 2021
    Release notes
    • 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 stopOnSlow stops execution upon first slow test. Default: false.
    • PR #84 New annotation option @slowThreshold 0 disables 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 stopOnSlow configuration 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 --filter option value. See the --filter option documentation for all supported matching patterns.

    Open source →
    Release notes
    • 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 stopOnSlow stops execution upon first slow test. Default: false.
    • PR #84 New annotation option @slowThreshold 0 disables checks for individual tests.
    Open source →
  3. v3.3.0 18 Dec 2020
    Release notes

    Version 3.3 adds supports for PHPUnit 9.5+, and a way to enable or disable the SpeedTrap listener using environment variables.

    • PR #73 Compatibility with PHPUnit 9.5
    • PR #66 Environment variable PHPUNIT_SPEEDTRAP="disabled" can disable profiling
    Open source →
  4. v3.2.0 12 Feb 2020
    Release notes

    Exclude testing PHPUnit 9 with unsupported PHP versions

    Open source →
    Release notes

    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()
    Open source →
  5. v3.1.0 24 Feb 2019
    Release notes

    Added compatibility with PHPUnit 8.0+ via composer.json.

    Upgrade 3.0 to 3.1

    No changes required.

    Open source →
    Release notes

    Version 3.1 introduces support for PHPUnit 8.0+.

    Open source →
  6. v3.0.0 24 Feb 2018
    Release notes

    Link to RSpec repository

    Open source →
    Release notes

    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
    Open source →
  7. v2.0.0 06 Dec 2017
    Release notes

    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.

    • PR #26 Support PHPUnit 6.0
    • PR #30 Add PHP 7 features (includes backwards compatibility breaks, see UPGRADE.md)
    • PR #31 Support PSR-4 autoloading
    • PR #39 SpeedTrapListener extends PHPUnit BaseTestListener
    Open source →
  8. v2.0.0-BETA1 17 Mar 2017 pre-release

    Nothing published for this version

  9. v1.1.0 25 Mar 2017
    Release notes

    Merge branch '1.0' into 1.1

    Open source →
  10. v1.0.3 25 Mar 2017
    Release notes

    PHPUnit 6 switched to using vendor namespaces.

    If you require PHPUnit 6+ support please use phpunit-speedtrap
    dev-master or 2.0 release branch.

    Open source →
  11. v1.0.2 13 Feb 2017

    Nothing published for this version

  12. v1.0.1 13 Sep 2015

    Nothing published for this version

  13. v1.0.0 21 Mar 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive