From cb0ffddbec34abb8f5b01acf3f81db85847894bb Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 15 Jun 2019 23:11:50 -0700 Subject: [PATCH] Add a report about slow PHPUnit tests johnkary/phpunit-speedtrap prints this information right before the test results. Bug: T225730 Change-Id: I288dcd6b3c9b2c0b31c6047eaf48a23e13af726e --- composer.json | 3 ++- tests/phpunit/suite.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e2244122d5..7a90804573 100644 --- a/composer.json +++ b/composer.json @@ -77,7 +77,8 @@ "wikimedia/testing-access-wrapper": "~1.0", "wmde/hamcrest-html-matchers": "^0.1.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": { "symfony/polyfill-ctype": "1.99", diff --git a/tests/phpunit/suite.xml b/tests/phpunit/suite.xml index de68fec17e..e6d55d8133 100644 --- a/tests/phpunit/suite.xml +++ b/tests/phpunit/suite.xml @@ -76,4 +76,18 @@ + + + + + + 50 + + + 50 + + + + + -- 2.20.1