Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 05d39c2d58
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (15 sloc) 1.076 kb

Clojure VCR

This is (yet another) implementation of VCR rubygem. As @myronmarston originally described it: Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

Personally, I'm still sceptical about mocking HTTP requests due to many reasons. One of them is, of course, the fact that library is made for integration, and mocking your APIs detaches your development / CI from the original service, which can make your tests pass, but lib itself will be broken. Use it wisely.

What's there?

Until now (about 1 day in development), only a rough prototype of a function that's going to wrap HTTP requests is done. But lots of things planned:

  • persist your test results to the VCR cassete (YAML file)
  • replay your tests
  • schedule cassete removal, set up logic for making cassete outdated
  • mock your HTTP calls

License

Copyright © 2012 Alex P

Distributed under the Eclipse Public License, the same as Clojure.

Jump to Line
Something went wrong with that request. Please try again.