GoogleTest GoogleTest is a unit testing framework for C ++ developed by Google. Just naming it Google makes me feel good, but It seems easy to use even if you look at the people who are actually using it.
Download from here: http://code.google.com/p/googletest/
I was disappointed when dealing with C language projects, as I was wondering if it could be used in C language because it was for C ++. Apparently that's not the case.
I tried to hack how to use Google Test in C
The test function is created with cpp and C header file
extern”C”{}
It seems that you only have to surround it with.
I haven't put it into practice yet, but I'll give it a try.
Recommended Posts