From 5cd73268816336dc4bc05ac27598f1e81dede0ca Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 10 May 2018 10:28:42 -0300 Subject: [PATCH] Add phpunit-speedtrap phpunit-speedtrap (https://github.com/johnkary/phpunit-speedtrap) includes a report of slow-running unit tests to the PHPUnit output and it will help identify WC core tests that need to be changed to run faster. --- composer.json | 3 ++- composer.lock | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- phpunit.xml | 3 +++ 3 files changed, 54 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 23e5159c991..2adb613b8c5 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "wimg/php-compatibility": "^8.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3", "apigen/apigen": "^4", - "nette/utils": "~2.3.0" + "nette/utils": "~2.3.0", + "johnkary/phpunit-speedtrap": "v2.0.0" }, "scripts": { "pre-update-cmd": [ diff --git a/composer.lock b/composer.lock index a3f2ed6f897..1afc520204e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "bc2c57d2be29888a0e4c3a09ec26cbe3", + "content-hash": "90e327f21ad7c717c91787def1f0cfec", "packages": [ { "name": "composer/installers", @@ -644,6 +644,54 @@ "abandoned": true, "time": "2014-05-27T05:29:25+00:00" }, + { + "name": "johnkary/phpunit-speedtrap", + "version": "v2.0.0", + "source": { + "type": "git", + "url": "https://github.com/johnkary/phpunit-speedtrap.git", + "reference": "a1e39e0e3d07e0faee4ef3f342229d68fab07b5f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/johnkary/phpunit-speedtrap/zipball/a1e39e0e3d07e0faee4ef3f342229d68fab07b5f", + "reference": "a1e39e0e3d07e0faee4ef3f342229d68fab07b5f", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "JohnKary\\PHPUnit\\Listener\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Kary", + "email": "john@johnkary.net" + } + ], + "description": "Find slow tests in your PHPUnit test suite", + "homepage": "https://github.com/johnkary/phpunit-speedtrap", + "keywords": [ + "phpunit", + "profile", + "slow" + ], + "time": "2017-12-06T15:14:00+00:00" + }, { "name": "justinrainbow/json-schema", "version": "1.6.1", diff --git a/phpunit.xml b/phpunit.xml index 322a9f2d8e3..20c1fce1a92 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -44,4 +44,7 @@ + + +