Overdrivr / Telemetry

Data visualization and communication with embedded devices
MIT License
136 stars 27 forks source link

Write tests for distribution #20

Closed Overdrivr closed 8 years ago

Overdrivr commented 8 years ago

In the idea to add Continous Integration to this repo, tests should be written for at least the Mbed distribution. There is no true technical limit preventing it. The BufferedSerial library should be mocked.

The tests should be limited to a dictionnary (topic, data, datatype) -> frame containing both valid and non valid frames. This dictionnary could be built with a script using the C api. The code under test will be challenged against this dictionnary and must pass all frames.

Such improvement could allow for very fast iteration of the protocol, and could allow to support a lot more platforms such as Arduino, etc.