PHPackages                             chinthakagodawita/codeception-timekeeper - 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. chinthakagodawita/codeception-timekeeper

ActiveLibrary

chinthakagodawita/codeception-timekeeper
========================================

A Codeception extension &amp; Robo task that records test runtimes and lets you split tests into equal runtime-based groups for parallel runs

v1.0.0-beta.2(5y ago)125[3 issues](https://github.com/chinthakagodawita/codeception-timekeeper/issues)MITPHPPHP &gt;=7.2CI failing

Since Jun 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chinthakagodawita/codeception-timekeeper)[ Packagist](https://packagist.org/packages/chinthakagodawita/codeception-timekeeper)[ Docs](https://github.com/chinthakagodawita/codeception-timekeeper)[ RSS](/packages/chinthakagodawita-codeception-timekeeper/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Codeception TimeKeeper
======================

[](#codeception-timekeeper)

A [Codeception](https://codeception.com/) extension &amp; [Robo](https://robo.li) task that records test runtimes and lets you split tests into equal runtime-based groups for parallel runs.

This can be hugely useful when running your tests in an automated fashion, such as in a Continuous Integration system. You can schedule multiple parallel test runs, each with roughly-equal runtimes.

This extension supports the following Codeception version:

- 3.x
- 4.x

Usage
=====

[](#usage)

First, install this package:

```
composer require chinthakagodawita/codeception-timekeeper
```

Codeception time reporting extension
------------------------------------

[](#codeception-time-reporting-extension)

Update your `codeception.yml` with:

```
extensions:
    enabled:
        - ChinthakaGodawita\CodeceptionTimekeeper\Reporter:
              report_location: _data/time_report.json
```

Then run your tests, a report with runtimes for each test will be output to `_data/time_report.json`. This isn't much use on its own, read on for how you can use this to run your tests in parallel.

Parallel test runs via Robo
---------------------------

[](#parallel-test-runs-via-robo)

[Install Robo](https://robo.li/):

```
composer require --dev consolidation/robo
```

Update your `Robofile`:

```
