DAVE and unit tests for XMC4500 firmware

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18264
Level 1
Level 1
Hello,

I'm developing on a XMC4500 and DAVE ide. I've a quite large code running on it and now that I have more than one person working on the code, i have the need to execute tests before compile and commit to git.
However i dont know how to do this on DAVE. I've read some threads where it said that any eclipse plugin worked, but I'm not sure because this progam language is Embedded C.

So, my questions are:
1. On Dave, How can I apply unit tests to my functions? (On a similar style to JUnit on netbeans ide)
2. How to I test code coverage?
3. Is there any way to test performance like memory during runtime when connected in debug mode?
4. There is any procedure I should do to test my code?

Thank you for your attention
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

This is not specific to DAVE or XMC products.
There are several resources in the web about the topic that can help you forward:
https://embeddedartistry.com/blog/2018/9/14/what-i-learned-at-james-grennings-remote-tdd-course?rq=u...
http://www.throwtheswitch.org/unity


Regards,
Jesus
0 Likes