Giter VIP home page Giter VIP logo

Comments (1)

philips77 avatar philips77 commented on July 17, 2024

Hi,
That's so true. The lib has zero tests and it's, as you wrote, written in non-testable way. I'm open for any proposals.
So far, testing on our side is based on manual tests on multiple phones, apps and devices + issues on GitHub, but that's far from ideal. Changing one thing may easily break others. There are other issues with the lib. It has a lot of legacy code. Initially it was written inside nRF Toolbox, used for 2-3 profiles. Then it was extended to all, then externalized, now the version 2 with changed API and deprecated the old one. But still the BleManager is around 2000 lines too long, should be cut, request implementation should be moved to requests, etc. Then it should be implemented with tests in mind, where each module should be testable separately. A lot of work, but I can't wait to start. To be honest, I don't want to add tests to this version, as it will for sure change in some time.

But some small changes, as you said, are very welcome. Please, fork the repo and send us PR. I'm sure that adding a constructor with the handler will not be enough and I have no time to look into it right now.

from android-ble-library.

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.