Black Sheep Code

Articles tagged "openapi":

Black box contract testing - third party API mocking

Published:

We have an API that makes calls out to a third party - how do we test it? We can use .HAR files to configure a tool like Mockbin to act as the third party service.

Blackbox contract tests - Performance testing with Jest

Published:

We can use a tool called jest-timing-reporter to provide a performance diff in our Github pull request.

OpenAPI and contract tests with Jest

Published:

Using good ol' Jest to write some contract tests with our OpenAPI generated client SDK.

Using Postman and an OpenAPI spec for contract/blackbox tests

Published:

Syncing Postman with our Github repo, generating queries from our OpenAPI spec.

Postman and OpenAPI - Automating tests

Published:

Postman has an automated testing feature, but how well does it work?

Thoughts about JSON API

Published:

JSON API is an opinionated REST API structuring spec. I think it has some good ideas about what can be useful in a RESTful API, but ultimately the complexity of using it makes it not worth using.

Generating MSW mocks from an OpenAPI spec.

Published:

We're using msw-auto-mock to generate MSW mocks to test our React application.

Generating application and client code from an OpenAPI spec

Published:

We'll use openapi-generators to generate a Go backend and a React frontend.

Why use OpenAPI?

Published:

OpenAPI is a spec for describing HTTP APIs. It has a healthy ecosystem of tooling that supports it.