Every step in that would probably map nicely to a test object in the json. I think I could refactor that.
Maybe some of the asserts would be useful as a teststep in the apptests? I could try to integrate those.
How does the emulator handle "hardware" like GPS? If it does not I probably need to find a new way to track the state of the "internal" GPS instead of checking the PIN mode like it does currently.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I had done this a while ago: https://github.com/espruino/BangleApps/blob/master/apps/android/test.js
Every step in that would probably map nicely to a test object in the json. I think I could refactor that.
Maybe some of the asserts would be useful as a teststep in the apptests? I could try to integrate those.
How does the emulator handle "hardware" like GPS? If it does not I probably need to find a new way to track the state of the "internal" GPS instead of checking the PIN mode like it does currently.