I am testing on an app that is making calls to a public backend.
I want to use wiremock to mock reponses from the public backends.
I was looking at something like
- the app makes a request to api.example.com which is forced through the wiremock proxy on localhost:<port>
- wiremock matches the URL based on the rules I provide and returns a mock response
The only examples I could find map localhost requests to real backends or mock responses to localhost.
Aucun commentaire:
Enregistrer un commentaire