<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Testing on php-tips.com</title>
    <link>https://php-tips.com/en/tags/testing/</link>
    <description>Recent content in Testing on php-tips.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 19 Jun 2026 15:45:07 +0900</lastBuildDate>
    <atom:link href="https://php-tips.com/en/tags/testing/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Speed Up Your CI with phpunit-slow-test-detector to Find Slow Tests</title>
      <link>https://php-tips.com/en/2026/06/19/phpunit-slow-test-detector/</link>
      <pubDate>Fri, 19 Jun 2026 15:45:07 +0900</pubDate>
      <guid>https://php-tips.com/en/2026/06/19/phpunit-slow-test-detector/</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Use &lt;code&gt;ergebnis/phpunit-slow-test-detector&lt;/code&gt; to surface your slow PHPUnit tests, then use that as a metric for parallelizing or splitting your test jobs.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/ergebnis/phpunit-slow-test-detector&#34;&gt;ergebnis/phpunit-slow-test-detector: A PHPUnit extension that detects and reports slow tests exceeding a configured threshold&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&#34;the-which-tests-are-slowing-down-ci-problem&#34;&gt;The &amp;ldquo;which tests are slowing down CI?&amp;rdquo; problem&lt;/h2&gt;
&lt;p&gt;Your CI tests are slow. They keep getting slower, and waiting after every push gets old fast.&lt;/p&gt;
&lt;p&gt;But when you actually try to speed things up, you can see that &amp;ldquo;the whole thing takes 5 minutes&amp;rdquo; — yet &amp;ldquo;okay, but which tests are dragging it down?&amp;rdquo; doesn&amp;rsquo;t jump out at you. You might have a vague hunch that &amp;ldquo;the tests touching the DB are probably the suspects,&amp;rdquo; but you haven&amp;rsquo;t actually measured anything.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
