Anti-Pattern Inc. Engineering Blog
TwitterFacebookRSS Feed
HomeAboutCorporate Site
About

OpenAPI

OpenAPIGogolang2021年10月2日

OpenAPIのサーバーでインテグレーションテストを書く

自社のサービスではOpenAPIを使ってサーバーを書いています。 https://swagger.io/specification/ ほぼ全てのエンドポイントに影響のあるリファクタリングをした時に、動作確認が辛すぎたのでインテグレーションテストを書くことにしました。 できたものは以下になります。 integration-test/integration_test at main · yutakahashi114/integration-test Contribute to yutakahashi114/integration-test development by creating an account on GitHub.GitHubyutakahashi114 [https://github.com/yutakahashi114/integration-test/tree/main/integration_test] 以下、簡単に説明を書いていきます。 サンプルアプリケーション 以下のschemaを元にサーバーを実装します。ユーザーの一覧取得、ID指定の取得、登録、更
Yu Takahashi
Yu Takahashi
10 min read
Anti-Pattern Inc. Engineering Blog © 2021 — Published with Ghost
HomeAboutCorporate Site