Coder Social home page Coder Social logo

haskell-vcr's People

Contributors

kaol avatar zudov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

haskell-vcr's Issues

Reorganize code

As more functionality and integrations are added the dependency footprint and scope of library grows. Originally Data.Vcr module was supposed to only contain data definitions, json encode/decoder and some helpers. But now it also integrates with http-client. My plan is to rename this repo to haskell-vcr and split the big module into several modules/libraries with different dependencies. The Data.Vcr will remain the core module containing data definitions, while the integrations would go to their own modules:

  • data-vcr: Data.Vcr
  • http-client-vcr: Network.HTTP.Client.Vcr
  • tasty-vcr: Tasty.Vcr
  • req-vcr: Network.HTTP.Req.Vcr

Publish to Hackage

This is pretty urgent, as right now we have to have them as git dependencies in stack.yaml in every project.

Recording to the same cassette from several threads

Currently, as soon as withCassette finishes it dumps the accumulated cassettes to it's FilePath. This of course means that if several threads are recording to cassette which should be on the same path they'll overwrite each other. This is a common scenario as tests are often run in parallel.

  • Regardless of the solution, the thing should be more paranoid and error out if somebody have touched the file while it was running and it doesn't know hot to handle it.
  • If several recorders are writing to the same cassette those interactions should be merged together. This can be done either when
    • we save the cassette, by noticing that somebody have written to the file after we have started, reading that file and merging with it; or when
    • we add new recordings, by sharing the cassette for multiple threads if they are binded to the same path

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.