Git Product home page Git Product logo

Comments (4)

projectgoav avatar projectgoav commented on July 24, 2024 1

Thanks for looking into this. When you feel ready, submit it as a PR and I'll give it a review! :)

Edit: I find it easier to review as a change-set rather than browse through the source files.

from e.deezer.

filipkristo avatar filipkristo commented on July 24, 2024

@projectgoav Maybe we can create new deezer account for unit test purpose? I thing that would be easy way to cover all methods with tests...

from e.deezer.

projectgoav avatar projectgoav commented on July 24, 2024

I did some work a long time ago on mocking out the API to return fake data but never continued. Working working on some UI as a sample use of the library so might continue this once that's complete.

Performing tests against the real API is difficult as without logging in the calls are rate limited and the test would probably hit this value very quickly. There's no easy way to automate authentication on the public API Deezer provide

from e.deezer.

PoLaKoSz avatar PoLaKoSz commented on July 24, 2024

Hi!

I would like to help so I started to work on this issue. You can find my progress here (I will merge a few commits together after I finished):

https://github.com/PoLaKoSz/E.Deezer/tree/develop/clean-code

Can You give me some feedback about this solution?
Thank You!

πŸ““Notes:

  • Found 2 bug while I wrote a few tests (this are the failing Unit tests)
  • Coverage changed (41.04% -> 48.05%)
  • Implemented a new approach which hopefully make the development and the testing more easy (mocking the server response)

from e.deezer.

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.