Skip to content

Commit

Permalink
Find slow phpunit tests in CI (#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 12, 2023
1 parent 5541090 commit 42c9705
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"require-dev": {
"cweagans/composer-patches": "^1.7.2",
"ergebnis/phpunit-slow-test-detector": "^2.1",
"icanhazstring/composer-unused": "^0.8.5",
"myclabs/php-enum": "^1.8.4",
"nategood/httpful": "^0.3.2",
Expand Down
5 changes: 5 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="tests/bootstrap.php" colors="true" executionOrder="defects" cacheDirectory=".phpunit.cache">

<testsuites>
<testsuite name="main">
<directory>tests</directory>
Expand All @@ -11,4 +12,8 @@
<php>
<ini name="memory_limit" value="-1"/>
</php>

<extensions>
<bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension"/>
</extensions>
</phpunit>

0 comments on commit 42c9705

Please sign in to comment.