Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock server responses in Unit Tests #300

Open
LordMike opened this issue Jan 23, 2019 · 1 comment
Open

Mock server responses in Unit Tests #300

LordMike opened this issue Jan 23, 2019 · 1 comment

Comments

@LordMike
Copy link
Collaborator

Allow us to mock responses using preconfigured results, so that we can continually test the library.

We could do:

  • A switch in the Unit Tests that either read from, or write to, the mocked responses collection / file (Allows us to update the mocked data)
    • We'd also be able to run without mocked data, recording all results, and then quickly in Git diff identifying if any remote endpoint has changed its response layout
  • A response should work for multiple different requests, so we'll need a way to identify which response to use (matching on url + parameters?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant