GithubHelp home page GithubHelp logo

Add tests about spark-sdk-android HOT 3 CLOSED

particle-iot avatar particle-iot commented on May 31, 2024
Add tests

from spark-sdk-android.

Comments (3)

jensck avatar jensck commented on May 31, 2024

My only thoughts on this (largely echoed from our previous conversations on the subject):

I would recommend de-prioritizing tests on the SDK in favor of high level integration tests on the device setup lib. By far the most common source of issues has been with the setup process running on new versions of Android, and it's also one of the more time consuming things to test when you have to run that test many, many times by hand.

As for implementation, I'd probably stick with JUnit-driven unit tests and Espresso-driven integration tests. Maybe try out Spek or Spock for unit tests if you really want something more concise? And I'd avoid both PowerMock, and any cross-platform testing framework. Both are devil's bargains: they look great up front, but they come with nasty side effects and limitations you'll only discover after using them for a bit that eclipse their value.

from spark-sdk-android.

idokleinman avatar idokleinman commented on May 31, 2024

I agree that high level integration tests on device setup lib are important, but actually are less likely to change/break (pending Android API changes/devices behaviour). Also - would be pretty hard to implement. Another piece on info:
We will soon push for a integrated "browserified" soft AP process that should work similarly on iOS and Android webviews.

Lately an API response change caused a crash in the iOS app which could have been caught easily with unit tests on SDK - the API IS changing all the time and might cause breakage. Just my 0.02$ on why unit tests on SDK still have lots of value.

from spark-sdk-android.

jason1813 avatar jason1813 commented on May 31, 2024

Question. Does anyone know where the repo is for the Particle Photon that goes along with the example_app in this repository? Sorry I wasn't sure where else to put this.

from spark-sdk-android.

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.