Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikelgoig/codeception-rest

✔︎ Codeception module for testing REST services.
https://github.com/mikelgoig/codeception-rest

codeception dev gherkin rest testing

Last synced: 7 days ago
JSON representation

✔︎ Codeception module for testing REST services.

Awesome Lists containing this project

README

        


Codeception Module for testing REST services


Created by Mikel Goig.



View Repository

---

[![Packagist Version](https://img.shields.io/packagist/v/mikelgoig/codeception-rest)](https://packagist.org/packages/mikelgoig/codeception-rest)
[![Packagist Downloads](https://img.shields.io/packagist/dt/mikelgoig/codeception-rest)](https://packagist.org/packages/mikelgoig/codeception-rest/stats)
[![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/mikelgoig/codeception-rest/php)](https://thephp.foundation)

**This Codeception module provides you with actions for testing REST services.**

It extends the Codeception's official [REST](https://codeception.com/docs/modules/REST) module, adding some helpers
and [Gherkin format](https://codeception.com/docs/BDD) support.

## 😎 Installation

1. Install this package using Composer:

```bash
composer require --dev mikelgoig/codeception-rest
```

## 🛠️ Configuration

1. Add the Codeception module to your config file:

```yml
modules:
enabled:
- MikelGoig\Codeception\Module\Rest:
depends: REST
multipart_boundary: foo
```

* `multipart_boundary` *optional* - the boundary parameter for multipart requests

2. To set up Gherkin steps, enable the `gherkin` part of the module:

```yml
modules:
enabled:
- MikelGoig\Codeception\Module\Rest:
# ...
part: gherkin
```