Skip to content

Commit

Permalink
Tracking automatically the slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeSimonson committed Jun 28, 2015
1 parent 6a274d0 commit c72267b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -20,7 +20,8 @@
"phpunit/phpunit": "~4.7",
"satooshi/php-coveralls": "0.6.*",
"doctrine/coding-standard": "dev-master",
"mockery/mockery": "^0.9.4"
"mockery/mockery": "^0.9.4",
"johnkary/phpunit-speedtrap": "~1.0@dev"
},
"conflict": {
"doctrine/orm": "<2.4"
Expand Down
15 changes: 15 additions & 0 deletions phpunit.xml.dist
Expand Up @@ -13,6 +13,21 @@
</whitelist>
</filter>

<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" >
<arguments>
<array>
<element key="slowThreshold">
<integer>200</integer>
</element>
<element key="reportLength">
<integer>10</integer>
</element>
</array>
</arguments>
</listener>
</listeners>

<logging>
<log type="coverage-html" target="build/coverage" title="doctrine migrations"
charset="UTF-8" yui="true" highlight="true" lowUpperBound="5"
Expand Down

0 comments on commit c72267b

Please sign in to comment.