-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding test code #869
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A while ago I removed the old tests from maniacbug days because they relied on older Arduino compilation convention and necessary hardware (RX & TX nodes driven by AVR-based MCUs from a Linux host). I think its time to tackle the creation of new tests.
Additional context
It would be prudent to add tests that would ensure compatibility with other libs like ArduinoJSON, but that is a secondary goal for now.
Implementation details like how to override SPI transactions for software tests are TBD (what this thread is meant for). Initially, I thought about making
read/write_registers()
,ce()
, andcsn()
protected when aRF24_TESTS
macro is defined. But, it may be easier to use a utility/test driver instead (which would allow using cross-platform compatible time-oriented libs as well).If done right, this could be extended to pyrf24 pkg. And yes, I am also considering the other RF24* libs, but that should be rather trivial after this is done with the RF24 core lib.
The text was updated successfully, but these errors were encountered: