PHPackages                             maurobaptista/phpunit-slow-tests - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. maurobaptista/phpunit-slow-tests

ActiveLibrary

maurobaptista/phpunit-slow-tests
================================

Get a better overview of the slowests tests in your suite

0.0.3(3y ago)01.8k[2 PRs](https://github.com/mauro-baptista/phpunit-slow-tests/pulls)MITPHPPHP ^8.0

Since Sep 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mauro-baptista/phpunit-slow-tests)[ Packagist](https://packagist.org/packages/maurobaptista/phpunit-slow-tests)[ Docs](https://github.com/maurobaptista/phpunit-slow-tests)[ GitHub Sponsors](https://github.com/maurobaptista)[ RSS](/packages/maurobaptista-phpunit-slow-tests/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

Get a better overview of the slowest tests in your suite
========================================================

[](#get-a-better-overview-of-the-slowest-tests-in-your-suite)

[![Latest Version on Packagist](https://camo.githubusercontent.com/871c0bddda5006598d5245de26cdc3c8df49f4513b465b8905b9588e0a753a9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726f62617074697374612f706870756e69742d736c6f772d74657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurobaptista/phpunit-slow-tests)[![Tests](https://github.com/maurobaptista/phpunit-slow-tests/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/maurobaptista/phpunit-slow-tests/actions/workflows/run-tests.yml)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require maurobaptista/phpunit-slow-tests --dev
```

Usage
-----

[](#usage)

In your `phpunit.xml` file, add the extensions as below.

```

        tests/report/result.csv

```

Configuration
-------------

[](#configuration)

### ResultToCSV Extension

[](#resulttocsv-extension)

A CSV export of the time of all ran tests will be stored in this file.

```

            tests/report/result.csv

```

**Arguments:**

ArgumentTypeDefaultNotefilestring`result.csv`Path to the file (can be a relative path)**Output:**

Console:

[![Result to CSV](https://camo.githubusercontent.com/eb15dce7054e33e703a63783bff50b68fd408f5698c958edf93be5eaf0b4065c/68747470733a2f2f63646e2e6d6175726f62617074697374612e636f6d2f7061636b616765732f706870756e69742d736c6f772d74657374732f726573756c742d746f2d6373762e706e67)](https://camo.githubusercontent.com/eb15dce7054e33e703a63783bff50b68fd408f5698c958edf93be5eaf0b4065c/68747470733a2f2f63646e2e6d6175726f62617074697374612e636f6d2f7061636b616765732f706870756e69742d736c6f772d74657374732f726573756c742d746f2d6373762e706e67)

File:

```
datetime,class,method,duration
"2022-11-08 02:06:23","Tests\Unit\ExampleTest",that_true_is_true,0.0055065
"2022-11-08 02:06:23","Tests\Feature\ExampleTest",that_true_is_true,0.186276667
```

### SlowestTests

[](#slowesttests)

```

            10

                    0.1

                    1

```

**Arguments:**

ArgumentTypeDefaultNoteshowinteger10Amount of tests that will be shown after the test ranthresholdarray`['success' => 0.1, 'warning' => 1]`Time to show tests as green, yellow, or red (in seconds)**Output:**

Console:

[![Slowest Tests](https://camo.githubusercontent.com/e30519fe17c89eec73fa06aa4221a7b33a2827d6c6d03a5f409f01c767a96103/68747470733a2f2f63646e2e6d6175726f62617074697374612e636f6d2f7061636b616765732f706870756e69742d736c6f772d74657374732f736c6f776573742d74657374732e706e67)](https://camo.githubusercontent.com/e30519fe17c89eec73fa06aa4221a7b33a2827d6c6d03a5f409f01c767a96103/68747470733a2f2f63646e2e6d6175726f62617074697374612e636f6d2f7061636b616765732f706870756e69742d736c6f772d74657374732f736c6f776573742d74657374732e706e67)

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Mauro Baptista](https://github.com/maurobaptista)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Total

3

Last Release

1284d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53acab3dfbe95651198d11051bbbe4e42b66045e620c7f217cf22ad69cdbe3ff?d=identicon)[maurobaptista](/maintainers/maurobaptista)

---

Top Contributors

[![mauro-baptista](https://avatars.githubusercontent.com/u/847054?v=4)](https://github.com/mauro-baptista "mauro-baptista (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![maurobaptista](https://avatars.githubusercontent.com/u/219198371?v=4)](https://github.com/maurobaptista "maurobaptista (3 commits)")

---

Tags

maurobaptistaphpunit-slow-tests

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/maurobaptista-phpunit-slow-tests/health.svg)

```
[![Health](https://phpackages.com/badges/maurobaptista-phpunit-slow-tests/health.svg)](https://phpackages.com/packages/maurobaptista-phpunit-slow-tests)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
