#contents
*趣旨 [#ccf36f69]
世の流れとして、dockerが普及し、マイクロサービスが乱立していくと、
結合テストのやり方から、マイクロサービス間同士の契約ベースのテストが、世の中の主流のやり方にいづれなることでしょう。

このページでは、そのテスト手法関連のフレームワークなどについて、まとめてまいります。

※このページは、どなたでも、spam以外の改変が可能です。

*実践 Pact:マイクロサービス時代のテストツール [#p2c4dfe8]
http://techlife.cookpad.com/entry/2016/06/28/164247

**PACT [#z16db250]
https://github.com/realestate-com-au/pact

**pact-jvm [#a76d47f3]
https://github.com/DiUS/pact-jvm

***gradleのプロジェクトをeclipseに取り込む方法 [#b2476bfd]
eclipseで開く場合
サンプルが全てgradleで作られているので、下記の方法でプロジェクトを取り込む必要があるようです。プロジェクトごとの依存関係もあるので、幾つか取り込むことになります。

http://web-dev.hatenablog.com/entry/gradle/eclipse-import-project


***Consumer Driven Contractsで REST API/マイクロサービスをテスト #m3tech [#gae35d65]

http://sssslide.com/www.slideshare.net/makingx/consumer-driven-contracts-rest-api-m3tech



*[参考] [#baa6e2f2]
以下はSpring Cloud Contractについて、
PACTと比較すると、日本語の記事が少ない

*Spring Cloud Contract [#h8550154]

**本家 [#yc750fe5]
https://cloud.spring.io/spring-cloud-contract/spring-cloud-contract.html

***git-hub [#ja797dcf]
https://github.com/spring-cloud/spring-cloud-contract

***サンプル [#b6b65aa0]
https://github.com/spring-cloud-samples/spring-cloud-contract-samples/

**Gitter (Git-hubと連携するチャットサービス) [#y8874db6]
https://gitter.im/spring-cloud/spring-cloud-contract




**Spring Cloud Contract Maven Plugin [#d30a1fe9]
https://cloud.spring.io/spring-cloud-contract/spring-cloud-contract-maven-plugin/

*Spring REST Docs [#d16fb426]

http://docs.spring.io/spring-restdocs/docs/current/reference/html5/

*Swagger2Markup [#j758da82]

https://github.com/Swagger2Markup/swagger2markup

*springfox-staticdocs [#gc688cc7]

https://springfox.github.io/springfox/docs/current/

*WireMock [#a9c1968f]

http://wiremock.org/

**How Java Developers Can Use the Wiremock Framework to Simulate HTTP-Based APIs [#lc461fe3]

https://www.infoq.com/articles/Wiremock-testing-mocking-over-wire-stubs

**WireMock: Mock Your REST APIs [#ab6a5ec8]

https://dzone.com/articles/wiremock-mock-your-rest-apis

**WireMock - a web service test double for all occasions  (git-hub) [#n5c3e148]
https://github.com/tomakehurst/wiremock

サンプルコードがそのまま動作しない。テスト用のクライアントがある前提の解説。

使い方については、git で落としてきたコードのテスト部分から読み解いていく感じ。

**AndroidとWireMockを使っている記事 [#y9ef2770]

http://joshskeen.com/mocking-webservices-with-robolectric-wiremock/
トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS