Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Module for codeception to test server over OpenAPI specification

License

Notifications You must be signed in to change notification settings

antonmarin/codeception-module-openapi

Repository files navigation

OpenAPI module for Codeception

Module for codeception to test server over OpenAPI specification

Installation

Add to composer requirements

composer require antonmarin/codeception-module-openapi

Enable module in codeception

functional.suite.yml

modules:
   enabled:
       - OpenAPI:
           depends: REST

Usage

public function testSpec(): void
{
  $I->haveSpecification('swagger/swagger.yaml');
  $I->loadFixtures(Fixture::class);
  
  $I->assertSpecificationImplemented('/orders/{orderId}');
}

About

Module for codeception to test server over OpenAPI specification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published