Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Unit tests for sensor module code #4

Open
okyang opened this issue Dec 5, 2020 · 1 comment
Open

Unit tests for sensor module code #4

okyang opened this issue Dec 5, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@okyang
Copy link
Contributor

okyang commented Dec 5, 2020

When others build this project it would be good to have some unit tests to see if everything on the software side is working while also checking some of the hardware. Having unit tests would be a useful feature and would be a great sanity checker.

Here are a couple possible tests to write (feel free to add more):

  • ultrasonic sensor reading works
  • photos can be taken
  • flash turns on and off appropriately
  • deep sleep works
  • network is successfully connected
@okyang okyang added enhancement New feature or request good first issue Good for newcomers labels Dec 5, 2020
@okyang
Copy link
Contributor Author

okyang commented Jan 18, 2021

Recommended software to use for unit testing: https://docs.platformio.org/en/latest/tutorials/core/unit_testing_blink.html.

Thanks @patrickanguyen for the suggestion! 🌱

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant