You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-28Lines changed: 27 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ SpeedTrap reports on slow-running PHPUnit tests right in the console.
6
6
7
7
Many factors affect test execution time. A test not properly isolated from variable latency (database, network, etc.) and even basic load on the test machine will cause test execution times to fluctuate.
8
8
9
-
SpeedTrap helps **identify slow tests** but cannot explain **why** those tests are slow. For that consider using [Blackfire.io](https://blackfire.io) to profile the test suite, or another PHPUnit listener [PHPUnit\_Listener\_XHProf](https://github.com/sebastianbergmann/phpunit-testlistener-xhprof), to specifically identify slow code.
9
+
SpeedTrap helps **identify slow tests** but cannot explain **why** those tests are slow. Consider using [Blackfire.io](https://blackfire.io) to profile the test suite to specifically identify slow code.
10
10
11
11

12
12
@@ -20,13 +20,13 @@ SpeedTrap is installed using [Composer](http://getcomposer.org). Add it as a `re
20
20
## Usage
21
21
22
22
Enable with all defaults by adding the following code to your project's `phpunit.xml` file:
@@ -56,13 +55,10 @@ Each parameter is set in `phpunit.xml`:
56
55
<elementkey="reportLength">
57
56
<integer>10</integer>
58
57
</element>
59
-
<elementkey="stopOnSlow">
60
-
<boolean>false</boolean>
61
-
</element>
62
58
</array>
63
59
</arguments>
64
-
</listener>
65
-
</listeners>
60
+
</extension>
61
+
</extensions>
66
62
</phpunit>
67
63
```
68
64
@@ -89,15 +85,15 @@ Setting `@slowThreshold 0` will never report that test as slow.
89
85
90
86
## Disable slowness profiling using an environment variable
91
87
92
-
SpeedTrapListener profiles for slow tests when enabled in phpunit.xml. But using an environment variable named `PHPUNIT_SPEEDTRAP` can enable or disable the listener.
88
+
SpeedTrap profiles for slow tests when enabled in phpunit.xml. But using an environment variable named `PHPUNIT_SPEEDTRAP` can enable or disable the extension:
0 commit comments