Merge "Add a report about slow PHPUnit tests"

This commit is contained in:
jenkins-bot 2019-06-17 22:55:20 +00:00 committed by Gerrit Code Review
commit 0c8cbf66e7
2 changed files with 16 additions and 1 deletions

View file

@ -77,7 +77,8 @@
"wikimedia/testing-access-wrapper": "~1.0", "wikimedia/testing-access-wrapper": "~1.0",
"wmde/hamcrest-html-matchers": "^0.1.0", "wmde/hamcrest-html-matchers": "^0.1.0",
"mediawiki/mediawiki-phan-config": "0.6.0", "mediawiki/mediawiki-phan-config": "0.6.0",
"symfony/yaml": "3.4.28" "symfony/yaml": "3.4.28",
"johnkary/phpunit-speedtrap": "^1.0 | ^2.0"
}, },
"replace": { "replace": {
"symfony/polyfill-ctype": "1.99", "symfony/polyfill-ctype": "1.99",

View file

@ -76,4 +76,18 @@
</exclude> </exclude>
</whitelist> </whitelist>
</filter> </filter>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
<arguments>
<array>
<element key="slowThreshold">
<integer>50</integer>
</element>
<element key="reportLength">
<integer>50</integer>
</element>
</array>
</arguments>
</listener>
</listeners>
</phpunit> </phpunit>