We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would be nice if something like this was supported:
implicit val testingBackend: SttpBackendStub[Future, Nothing] = SttpBackendStub(AkkaHttpBackend()) .whenRequestMatches(_.uri.path.nonEmpty) .thenRespond(throw SomeException("Timeout or something else happened"))
This way you can write tests that describes certain cases, such as timout or connection errors.
The text was updated successfully, but these errors were encountered:
#43: supporting exceptions in the stub backend
927c7c7
Please test 1.0.3 & see the docs at http://sttp.readthedocs.io/en/latest/testing.html!
Sorry, something went wrong.
No branches or pull requests
Would be nice if something like this was supported:
This way you can write tests that describes certain cases, such as timout or connection errors.
The text was updated successfully, but these errors were encountered: