ePages-de / restdocs-wiremock

Spring REST Docs WireMock Integration
Apache License 2.0
75 stars 28 forks source link

Support "WireMock Scenarios" feature #2

Open otrosien opened 8 years ago

otrosien commented 8 years ago

At the moment it is possible to generate wiremock snippets that both document error scenarios and success scenarios for the same URL path. Later on the client the behaviour is non-deterministic on which of these snippets are getting used.

We need a way (like tagging the wiremock snippets) that let's the client specify which of these snippets to use as part of the fixture setup. If that is not possible, either reject or warn when user wants to generate two wiremock snippets of the same URL path.

otrosien commented 8 years ago

Note to self: At the moment we solve this using the spring-boot-starter. On test method level, you can read in a subset of json snippets that you need for your tests.

We should nevertheless look into the "scenarios" feature of wiremock.