You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for this nice job!
I hope to use prism as mock server to simulate third-party services and cover my integration tests.
In current version of prism, there is no relation between requests and response, so if i have third-party api whit 3 different responses, such as:
200 (and a full object)
201 (and new record id)
202 (and some description)
There is no way to test all 3 possible scenario!
I couldn't find any official way in open-api documentation to cover this subject but there are named examples that can help us out. So i defined named request examples an their pair named responses.
If prism answer the paired response of specific request examples, it will be a grate integration test tool.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello and thanks for this nice job!
I hope to use prism as mock server to simulate third-party services and cover my integration tests.
In current version of prism, there is no relation between requests and response, so if i have third-party api whit 3 different responses, such as:
There is no way to test all 3 possible scenario!
I couldn't find any official way in open-api documentation to cover this subject but there are named examples that can help us out. So i defined named request examples an their pair named responses.
If prism answer the paired response of specific request examples, it will be a grate integration test tool.
Beta Was this translation helpful? Give feedback.
All reactions