EnotionZ / gpio

Talk to your Single Board Computer's gpio pins
MIT License
394 stars 57 forks source link

Automated tests #48

Open EnotionZ opened 6 years ago

EnotionZ commented 6 years ago

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

rzr commented 6 years ago

I can add a dockerfile and travis job if it helps

makeros commented 6 years ago

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.

EnotionZ commented 6 years ago

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