PHPackages                             chapabu/codeception-drupal-runserver - 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. chapabu/codeception-drupal-runserver

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

chapabu/codeception-drupal-runserver
====================================

Codeception extension for starting and stopping a Drush server using PHP's built in webserver.

0101PHP

Since Mar 2Pushed 11y agoCompare

[ Source](https://github.com/Chapabu/codeception-drupal-runserver)[ Packagist](https://packagist.org/packages/chapabu/codeception-drupal-runserver)[ RSS](/packages/chapabu-codeception-drupal-runserver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Codeception Drupal Drush Server
===============================

[](#codeception-drupal-drush-server)

BranchStatusMaster[![Build Status](https://camo.githubusercontent.com/0b45986befbde903119218fd98dddfa95ef0db1f8cd1674cd69e4f141c6ead07/68747470733a2f2f7472617669732d63692e6f72672f436861706162752f636f646563657074696f6e2d64727570616c2d72756e7365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Chapabu/codeception-drupal-runserver)Codeception extension for starting and stopping a Drush server using PHP's built in webserver and the `drush runserver` command.

Requirements
------------

[](#requirements)

- Drush
- PHP 5.4 (the Drush server does support PHP 5.3, but I'm not likely to actively test this. Pull requests welcome if this is required :))

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

[](#installation)

Via Composer

```
$ composer require chapabu/codeception-drupal-runserver --dev
```

Usage
-----

[](#usage)

```
paths:
    tests: .
    log: _log
    data: _data
    helpers: _helpers
extensions:
    enabled:
        - Codeception\Extension\DrushRunserver
    config:
        Codeception\Extension\DrushRunserver:
            drupalRoot: docroot
            drushBinary: ../vendor/bin/drush
            hostname: 127.0.0.1
            port: 8080
            variables:
                site_name: My cool site
                theme_default: my_awesome_theme
                site_mail: admin@example.com
```

### Configuration options

[](#configuration-options)

#### drupalRoot

[](#drupalroot)

```
drupalRoot: docRoot
```

The folder (relative to your `codecept.yml` file) where your Drupal installation resides (default: same directory as `codecept.yml`).

#### drushBinary

[](#drushbinary)

```
drushBinary: ../vendor/bin/drush
```

The path to the Drush binary on your system (default: `drush` - as if it were installed globally).

#### hostname

[](#hostname)

```
hostname: 127.0.0.1
```

The address to bind to the server (default: `127.0.0.1`).

#### port

[](#port)

```
port: 8080
```

The port number to bind to the server (default: `8888`).

#### variables

[](#variables)

```
variables:
    site_name: My cool site
    theme_default: my_awesome_theme
    site_mail: admin@example.com
```

A key-value array of variables to override in the`$conf` array for the running site.

Testing
-------

[](#testing)

```
$ codecept run
```

Credits
-------

[](#credits)

Most of the code for this was lifted from , but rejigged to use the `drush runserver` command.

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://www.gravatar.com/avatar/a86ae62aa9712f1a58cb7fad19289e5bebeb5ae8eaed544455ab61e24f272aa1?d=identicon)[Chapabu](/maintainers/Chapabu)

---

Top Contributors

[![Chapabu](https://avatars.githubusercontent.com/u/1395471?v=4)](https://github.com/Chapabu "Chapabu (34 commits)")

### Embed Badge

![Health badge](/badges/chapabu-codeception-drupal-runserver/health.svg)

```
[![Health](https://phpackages.com/badges/chapabu-codeception-drupal-runserver/health.svg)](https://phpackages.com/packages/chapabu-codeception-drupal-runserver)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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