Giter Club home page Giter Club logo

Comments (4)

PragTob avatar PragTob commented on September 15, 2024

This of course here is somewhat related to #5

from furoshiki.

plexus avatar plexus commented on September 15, 2024

On 24.06.2013 12:00, Tobias Pfeiffer wrote:

The tests seem to make real HTTP requests, which is not always the
best way to handle things. Maybe we should think about using something
like the vcr/vcr gem.


Reply to this email directly or view it on GitHub
#4.

What service is it calling? I've worked with VCR before, it's pretty
cool but if the interactions aren't too complex I prefer to write a
test/mock service.

from furoshiki.

PragTob avatar PragTob commented on September 15, 2024

Well in that case it is downloading a huge ass zip file... see #5 - maybe for tests we should take that from the local file system (I think it does so after the first test run) however that's not so cool for Travis.

On the other hand the real request is also cool, as it makes us notice if the URL is broken during test runs... so umm as always lots of viable options :-)

from furoshiki.

wasnotrice avatar wasnotrice commented on September 15, 2024

What would I do without you two to keep me honest? :)

I'd like to find some solution that does test the whole process end-to-end, but that maybe allows us to skip the actual download on Travis runs. As we add packaging options, the number of potential downloads will increase.

Maybe that end-to-end spec would be something we run locally before pushing to Travis, but not on Travis? We could also have a spec that checks for the existence of the necessary URLs without downloading files (HEAD requests?). This would still require the network, but not much, and it's a nice documentation of the URLs we need to be available.

I don't know enough about Travis to propose a solution for handling that large file. It seems like if we need to use a file, we will have to download it, unless Travis offers us a place to host it.

from furoshiki.

Related Issues (12)

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.