Everton J. Carpes
Everton J. Carpes

Reputation: 362

How to stub HTTP requests on Common LISP tests?

Is there any tool usually used in Common LISP tests to block all network requests and stub responses for specific URLs?

Just for reference, in Ruby we usually use:

(or even more powerful tools like https://github.com/vcr/vcr made on top of them)

I know similar tools exist in Python (I remember this one: https://github.com/gabrielfalcao/HTTPretty) and I have found:

https://github.com/johanhaleby/stub-http

created for Clojure and described here:

Strategy for stubbing HTTP requests in Clojure tests

Is there anything similar to this? If not, what do you usually test code that open connections and do external requests. Do you only mock methods directly with tools like mockingbird and cl-mock or is there anything I'm missing?

Upvotes: 1

Views: 83

Answers (0)

Related Questions