gpio icon indicating copy to clipboard operation
gpio copied to clipboard

Automated tests

Open EnotionZ opened this issue 7 years ago • 3 comments

Use some free CI service so we can catch something like https://github.com/EnotionZ/GpiO/issues/47

EnotionZ avatar Aug 01 '18 18:08 EnotionZ

I can add a dockerfile and travis job if it helps

rzr avatar Aug 01 '18 18:08 rzr

You can try to mock the environment for gpio on the hardware. Right now i'm using something like this https://github.com/Ozsie/gpioMock/ (modified a little bit) to mock the behaviour of a gpio files tree. Testing for temperature sensors. I can now control the sensor values by providing a function which is calculating the changes during time.

makeros avatar Aug 02 '18 10:08 makeros

@makeros thanks for sharing, I'll consider using gpioMock for this. Looks like that library can also resolve #40. Also related to #51.

EnotionZ avatar Sep 27 '18 21:09 EnotionZ