PHPackages                             modera/tests-runner - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. modera/tests-runner

ActiveLibrary[Testing &amp; Quality](/categories/testing)

modera/tests-runner
===================

v0.3(8y ago)02.2k11MITPHPPHP &gt;=5.6

Since Nov 26Pushed 1y ago2 watchersCompare

[ Source](https://github.com/modera/tests-runner)[ Packagist](https://packagist.org/packages/modera/tests-runner)[ RSS](/packages/modera-tests-runner/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (1)

modera/tests-runner
===================

[](#moderatests-runner)

The package provides a PHPUnit listener that can be used to perform certain operations before/after test suite is executed. For instance when running functional tests you may want to create a database before test is run and drop it afterward.

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

[](#installation)

- Add this dependency to your composer.json:

```
"modera/tests-runner": "1.x-dev"

```

- (Optional, Recommended) If you have docker installed then in a project where you want to run tests use this command to install runner bash script:

```
wget https://raw.githubusercontent.com/modera/tests-runner/1.x/scripts/phpunit.sh && chmod +x phpunit.sh
```

Later you will be able to use this script to run tests, on the first run this script will also install additional required components.

- Create file named **.mtr** (notice a dot in the beginning) next to your phpunit.xml/phpunit.xml.dist, sample:

```
