Great video. Searched a long time to get started on Unit Testing for Arduino. The way you could separate tests into different files is to create a separate Run function in each test file containing the RUN_TEST calls for its own tests. Call these Run functions from main routine in the the bootstrap file. it now only contains 1 line per file) For this to work you dont even have to move the testfile from the test directory -test_desktop: ..+ bootstrap.cpp (containing include for test_add.hpp) ..+ test_add.hpp (containing multiple test functions and one test_add_Run() calling RUN_TEST for each)
im having issues getting unity to work for me I installed it using platformIO library manager and it keeps showing an error with getting the unity_cnfig it shows the same error even after I added the config file
Thank you How can text coverage be reported in addition to a simple pass or fail? Also, is it possible to run the test cases on a microcontroller? Best
This video is what I've actually needed for long time. Thank you for your great work! You earned my subscription.
I'm glad I could help! Please let me know if there are any other topics you'd like me to cover.
Great video. Searched a long time to get started on Unit Testing for Arduino. The way you could separate tests into different files is to create a separate Run function in each test file containing the RUN_TEST calls for its own tests. Call these Run functions from main routine in the the bootstrap file. it now only contains 1 line per file)
For this to work you dont even have to move the testfile from the test directory
-test_desktop:
..+ bootstrap.cpp (containing include for test_add.hpp)
..+ test_add.hpp (containing multiple test functions and one test_add_Run() calling RUN_TEST for each)
Thanks for this suggestion! I'm planning to make more videos on this subject in the future and unit/integration test more complex functionalities :)
Dzieki stary! Potężny kawał dobrej roboty. Szacun. :)
Spoko, nie ma za co :)
You are such a great teacher !! I love poland
im having issues getting unity to work for me I installed it using platformIO library manager and it keeps showing an error with getting the unity_cnfig it shows the same error even after I added the config file
Thank you
How can text coverage be reported in addition to a simple pass or fail? Also, is it possible to run the test cases on a microcontroller?
Best
That unity framework test cases are running in esp?
Help full tutorial thanks!
Glad it helped!
Hi, how to test a string type with unity ?
you can find docs on testing strings here: github.com/ThrowTheSwitch/Unity#string-assertions
Nice video but this accent... im not buing it🤣
ok. thanks anyway 👍