PHPackages                             punkstar/testrig - 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. punkstar/testrig

Abandoned → [ecomdev/mage-ci](/?search=ecomdev%2Fmage-ci)ArchivedLibrary

punkstar/testrig
================

Magento installation automation

1843[3 issues](https://github.com/punkstar/testrig/issues)PHP

Since Jan 7Pushed 10y ago2 watchersCompare

[ Source](https://github.com/punkstar/testrig)[ Packagist](https://packagist.org/packages/punkstar/testrig)[ RSS](/packages/punkstar-testrig/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Testrig for Magento
===================

[](#testrig-for-magento)

Testrig is a tool for quickly setting up, potentially, multiple versions of Magento for extension testing. Testrig is designed for [modman](https://github.com/colinmollenhour/modman) compatible extensions, supports the installation of sample data and runs the entire installation process automatically.

[![image](https://camo.githubusercontent.com/e58f0ad07b0f5700f78589d29e0bd8ceee4b125b42377bb5881624b7e0fc6160/687474703a2f2f75702e6e69636b736179732e636f2e756b2f696d6167652f336830473035326c306a33442f53637265656e25323053686f74253230323031322d31312d3236253230617425323032322e33312e33372e706e67)](https://camo.githubusercontent.com/e58f0ad07b0f5700f78589d29e0bd8ceee4b125b42377bb5881624b7e0fc6160/687474703a2f2f75702e6e69636b736179732e636f2e756b2f696d6167652f336830473035326c306a33442f53637265656e25323053686f74253230323031322d31312d3236253230617425323032322e33312e33372e706e67)

### Features

[](#features)

- Caches copies of the Magento installation .tar.gz files
- Can install multiple versions of Magento at the same time
- Can automatically `modman deploy` any number of extensions in a single execution

### Installation

[](#installation)

#### Requirements

[](#requirements)

- PHP version 5.3.0+

#### GIT

[](#git)

The most common way, I'd imagine, of people installing `testrig` is by cloning a local copy.

```
git clone -b master https://github.com/punkstar/testrig.git ~/testrig
cd ~/testrig
composer install
echo "alias testrig=~/testrig/bin/testrig" >> ~/.zshrc

```

#### Composer

[](#composer)

If you'd like to install `testrig` as a dependency of your project, then:

```
{
    "require": {
        "meanbee/testrig": "*"
    }
}

```

### Using testrig

[](#using-testrig)

#### Basic Usage

[](#basic-usage)

```
testrig --name  --dir  --url  --version [,]* --db_user  --db_pass  [[,]+]

```

#### Example Usage

[](#example-usage)

The follow incantation will set up three Magento installations (1.5, 1.6 and 1.7) with the Royal Mail Magento extension added and deployed.

```
testrig --name royalmail \
        --dir ~/Sites/test/royalmail \
        --url http://bartley.local:8888/test/royalmail \
        --version 1.5,1.6,1.7 \
        --db_user root \
        --db_pass toor \
        https://github.com/meanbee/royalmail.git

```

- `--name `: Use to construct the database name
- `--dir `: The location on direct that the `--url` refers to
- `--url `: The web accessible address of the `--dir` directory
- `--version `: The version(s) of Magento you'd like to install. If multiple versions are required, then separate with a comma
- `--db_user `: The username of a MySQL user that has permission to create databases
- `--db_pass `: The password of the `--db_user` MySQL user
- `https://github.com/meanbee/royalmail.git`: The git remote of a modman compatibile Magento extension. You can list as many as you like, each separated with a space.

The `~/Sites/test/royalmail` directory will contain three directories after this command, each with a different version of Magento fully setup and configured.

#### Optional Parameters

[](#optional-parameters)

- `--sample`: Install sample data

### Testing

[](#testing)

Unit tests are held in the `tests/` directory and are written with `phpunit`. To run all tests, run `phpunit` from the root directory.

Current build status:

- [![Build Status](https://camo.githubusercontent.com/e2718ffe2c4f82d0baa11dfa7fd57ca3fc51ab20a2664c506a260893aafe4f7b/68747470733a2f2f7472617669732d63692e6f72672f70756e6b737461722f746573747269672e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/punkstar/testrig) [master](https://github.com/punkstar/testrig/tree/master)
- [![Build Status](https://camo.githubusercontent.com/7eb7d56e53b5a27e796060c3742fde22a8f01c5eb61b5b2c379c979b8e197233/68747470733a2f2f7472617669732d63692e6f72672f70756e6b737461722f746573747269672e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/punkstar/testrig) [develop](https://github.com/punkstar/testrig/tree/develop)

### License

[](#license)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/179072?v=4)[Nick Jones](/maintainers/punkstar)[@punkstar](https://github.com/punkstar)

---

Top Contributors

[![punkstar](https://avatars.githubusercontent.com/u/179072?v=4)](https://github.com/punkstar "punkstar (7 commits)")[![IvanChepurnyi](https://avatars.githubusercontent.com/u/866758?v=4)](https://github.com/IvanChepurnyi "IvanChepurnyi (2 commits)")[![jlas](https://avatars.githubusercontent.com/u/1295565?v=4)](https://github.com/jlas "jlas (1 commits)")

### Embed Badge

![Health badge](/badges/punkstar-testrig/health.svg)

```
[![Health](https://phpackages.com/badges/punkstar-testrig/health.svg)](https://phpackages.com/packages/punkstar-testrig)
```

PHPackages © 2026

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