Thanks Phillip- you helped me find some improvements to be made, and
an embarrassing bug for good measure. I appreciate your patience and
feedback during that process.
The next phase of development on this project will focus almost
entirely on the system of hardware mocks in C/C++, which will involve
a discussion that I'm not quite sure how to start. Broadly speaking,
there are a few aspects that are interrelated:
* I'm not sure what functions, macros, and definitions are considered
"public" for a given board, so it's not clear how much of this to try
and replicate in mocks
* I'm not sure what functions, macros, and definitions are considered
"public" for a given architecture either; it's not clear whether
avr-libc is all I need for AVR, or if there are other things
* There isn't really a way to inject unit testing capabilities into
the Arduino reference library itself, so things like mocking a Serial
port object involve going all the way down to mocking Stream.
(ArduinoCore-API seems like it might be a good place to work on
changing that, but I'm not sure when or how that might be picked up by
the different platforms themselves)
How should I set my expectations here? Is unit testing a worthy
enough goal to encourage minor changes to the Arduino ecosystem, or
should I expect to have to be in a state of perpetual workarounds?
Best,
-Ian
> --
> You received this message because you are subscribed to the Google Groups "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
developers+...@arduino.cc.
> To view this discussion on the web visit
https://groups.google.com/a/arduino.cc/d/msgid/developers/0259f813-8ed9-4a74-9d90-ae4e61a56c02n%40arduino.cc.