Hi, how do I perform Unit testing on the MSP430 ? Any specific toolchain/ tools supports that?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, how do I perform Unit testing on the MSP430 ? Any specific toolchain/ tools supports that?
I want to write the test cases, so as to validate the functionality at code (unit) level, so as to meet the safety standards like IEC61508. I like to know, is there any support tools from ti, any open source tools to do that, specific to MSP430.
(If a tool generates the test cases on its own, its welcome too).
Ah, unit tests, the most time-consuming and least useful idea of academic theoreticians.
We once introduced unit tests for out flash-based client software. The test units were always complaining when the code was refactured, but didn't detect any bug (even not those I figured out myself).
Unit tests are useful if you want to know whether your SQRT function for some reason doesn't give 1.414 for SQRT(2) anymore. But in a larger and more complex project, they are just eating time and do not help finding bugs.
Sure, when putting unlimited time in endless unit tests, you will find almost 100% of all bugs. But I prefer finishing my projects within my lifetime. Sure, some experience in debugging helps to find possible bugs without endless coding of unit tests. Skill vs. effort trade-off. With the effort side of the equation increasing exponentially.
No, I've not heard of any tool for automatic generation for the MSP430. So if you want to do unit testing, well, you should write your test cases using your library code yourself. Manually.
And maybe you're lucky and they will fit into the MSP :)
**Attention** This is a public forum