Git Product home page Git Product logo

Comments (5)

runcom avatar runcom commented on July 20, 2024

maybe not, we need better mocks?

from image.

mtrmac avatar mtrmac commented on July 20, 2024

Can we get away with having integration tests against real/live servers only in skopeo, per #27 ? Otherwise we are at high risk of writing and updating exactly the same tests twice, once using the CLI and once using the API.

Local server-less unit tests would still be useful, of course. An 80%, mock-less, solution, would be to split the send HTTP request+parse response methods into

  • “prepare HTTP request” helper
  • “parse HTTP response” helper
  • top level which calls the prepare helper, executes the request, and calls the parse helper.

Then we could trivially unit-test the two helpers with no IO (and the top level would remain not unit-tested). (I’m sure there is a fancy name for this pattern but I can’t recall right now.)

from image.

rhatdan avatar rhatdan commented on July 20, 2024

@runcom @mtrmac @vrothberg What is the state of this issue. It is two years old, can we close it?

from image.

vrothberg avatar vrothberg commented on July 20, 2024

I think this issue is fixed.

from image.

mtrmac avatar mtrmac commented on July 20, 2024

New contributors are really baffled by make test-skopeo; moving the integration tests directly into this repository would be nice. But I suppose that’s different from this “have some tests at all” issue.

from image.

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.