Giter Site home page Giter Site logo

Support for Streams about faraday HOT 8 CLOSED

dmarjenburgh avatar dmarjenburgh commented on July 18, 2024
Support for Streams

from faraday.

Comments (8)

ricardojmendez avatar ricardojmendez commented on July 18, 2024

Hi!

Thanks for writing. I haven't used the streams myself, so I'm not that familiar with them. Is this something you can add tests for using the local DynamoDB, or do they only work on full version?

from faraday.

dmarjenburgh avatar dmarjenburgh commented on July 18, 2024

They work for the local version as well (small differences at the bottom of Usage Notes.

I'm not familiar with the test namespaces in farady, so I'm not sure how easy it is to write tests for this, but I can have a look

from faraday.

ricardojmendez avatar ricardojmendez commented on July 18, 2024

Thanks! Alternatively, as discussed on #101 we might just move away from expectations, so I expect it'd be fine just having a namespace for these tests based on clojure.test. I'll let @ptaoussanis chime in, though.

from faraday.

dmarjenburgh avatar dmarjenburgh commented on July 18, 2024

Ok, I created some tests at the end of main.clj.
Let me know if and how it needs to be improved.

from faraday.

ptaoussanis avatar ptaoussanis commented on July 18, 2024

Thanks Daniel, Ricardo!

so I expect it'd be fine just having a namespace for these tests based on clojure.test

My 2c: might suggest that we continue just using Expectations for everything for the moment, until everything gets migrated in one go. [Indeed, may never even happen since it's not urgent or particularly valuable].

Migrating between Expectations and clojure.test should be straight-forward if/when we choose to do it; probably even something we can do programatically.

Splitting tests between two tools (even temporarily) might cause more hassle than it's worth?

Thanks for checking about this though, was a totally reasonable possibility after our recent chat about the test situation.


Re: the PR in general-

Only had an opportunity to skim, but looks good to me in principle. @ricardojmendez How about you let me know when you're satisfied with the PR, and I'll give it one last look-over before we merge?

Really appreciate both your efforts, this looks like it'll be a valuable addition.

Cheers! :-)

from faraday.

ricardojmendez avatar ricardojmendez commented on July 18, 2024

Migrating between Expectations and clojure.test should be straight-forward if/when we choose to do it; probably even something we can do programatically.

Splitting tests between two tools (even temporarily) might cause more hassle than it's worth?

Playing devil's advocate, since I'm ambivalent myself about the idea of keeping two frameworks while transitioning:

  • Splitting tests has a small, one-time cost: making sure both are run on the test script,
  • Allowing people to contribute self-contained tests via clojure.test lowers the barrier of entry for contributors who might not be familiar with expectations, or who potentially don't want to wade through our current test monolith,
  • Contributors are more likely to be aware of the intention of their change than us, so it makes sense to minimize the odds of running into an issue when eventually migrating their tests.

Let me go over the PR later today.

from faraday.

ptaoussanis avatar ptaoussanis commented on July 18, 2024

Playing devil's advocate, [...]

Appreciate that, thanks. Will just note that migrating away from Expectations is low enough a priority that there's a significant chance it may never happen. Meaning that we may need to be okay with potentially being stuck with two test suites + tools moving forward.

Don't have a strong preference on this, happy for you to make the call.

from faraday.

ptaoussanis avatar ptaoussanis commented on July 18, 2024

Closing to focus on #108

from faraday.

Related Issues (20)

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.