v4.0.0
- 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.
Unclaimed project
Are you a maintainer of phpunit-speedtrap? Claim this project to take control of your public changelog and roadmap.
Changelog
Reports on slow-running tests in your PHPUnit test suite
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.
SecLists is the security tester's companion. It's a collection of multiple types of lists used during security assessments, collected in one place. List types include usernames, passwords, URLs, sensitive data patterns, fuzzing payloads, web shells, and many more.
An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 280+ one-click services on your own servers.
☁️ Nextcloud server, a safe home for all your data
Laravel is a web application framework with expressive, elegant syntax.