Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikelgoig/codeception-openapi
✔︎ Codeception module for contract testing with OpenAPI.
https://github.com/mikelgoig/codeception-openapi
codeception contract-testing dev gherkin openapi rest symfony testing
Last synced: 4 days ago
JSON representation
✔︎ Codeception module for contract testing with OpenAPI.
- Host: GitHub
- URL: https://github.com/mikelgoig/codeception-openapi
- Owner: mikelgoig
- Created: 2025-01-09T21:31:36.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-09T22:16:13.000Z (5 days ago)
- Last Synced: 2025-01-09T23:18:11.290Z (5 days ago)
- Topics: codeception, contract-testing, dev, gherkin, openapi, rest, symfony, testing
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Codeception Module for contract testing with OpenAPI
Created by Mikel Goig.---
![Packagist Version](https://img.shields.io/packagist/v/mikelgoig/codeception-openapi)
![Packagist Downloads](https://img.shields.io/packagist/dt/mikelgoig/codeception-openapi)
![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/mikelgoig/codeception-openapi/php)**This Codeception module provides you with actions to validate API requests and responses with
an [OpenAPI](https://openapis.org) Specification.**It requires [REST](https://codeception.com/docs/modules/REST)
and [Symfony](https://codeception.com/docs/modules/Symfony) modules.It supports [Gherkin format](https://codeception.com/docs/BDD).
## 😎 Installation
1. Install this package using Composer:
```bash
composer require --dev mikelgoig/codeception-openapi
```## 🛠️ Configuration
1. Add the Codeception module to your config file:
```yml
modules:
enabled:
- MikelGoig\Codeception\Module\OpenApi:
depends: [ REST, Symfony ]
openapi: path/to/openapi.yaml
multipart_boundary: foo
```* `openapi` - the path of the OpenAPI file
* `multipart_boundary` *optional* - the boundary parameter for multipart requests2. To set up Gherkin steps, enable the `gherkin` part of the module:
```yml
modules:
enabled:
- MikelGoig\Codeception\Module\OpenApi:
# ...
part: gherkin
```