r3bzya/openapi-testing
最新稳定版本:v0.1.0
Composer 安装命令:
composer require --dev r3bzya/openapi-testing
包简介
This package allows you to integrate the specification validation into the flow of tests
关键字:
README 文档
README
This package allows you to integrate the specification validation into the flow of tests.
Installation
Note
This package is mostly intended to be used as part of an API test suite.
Via Composer:
composer require --dev r3bzya/openapi-testing
Usage
You can use \R3bzya\OpenApiTesting\Concerns\HasSpecificationAssertion or \R3bzya\OpenApiTesting\Concerns\ValidateOpenApiSpecification
just add one of them into your TestCase class.
HasSpecificationAssertion
The HasSpecificationAssertion trait adds the assertSpecification method
into your TestCase class, this may be necessary if you need to check one specific case.
ValidateOpenApiSpecification
The ValidateOpenApiSpecification trait integrates into the call method
which will allow your application to validate specification in the flow of tests.
Note
If for some reason there is no need to validate the specification disable it in your test method with theskipOpenApiSpecificationValidationmethod or disable it globally for the Test class by theskipOpenApiSpecificationValidationproperty.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-16