开发者

check vs google test framework for c code

I want to setup a unit testing framework for a c project (c not c++). I have looked into this list and checked out this stackoverflow question. I want a framework that I can easily setup for my project that only uses standard c libraries and is compiled and run on fedora 14 (64 bit version). It is not an embedded system like on the stackoverflow question. It looks like check and google test framework would work best. Do you guys know of any advantages/disadvantages of using one over the other or is their 开发者_运维问答a better option out there? I have used JUnit and NUnit in the past for java and c# code. If it matters, I compile and run everything from the command line instead of using one of the IDEs.


... that only uses standard c libraries ...

Why is this requirement so important for the test framework if this is not an embedded system? I believe you can keep your production code c, while using any c++ framework.

If the requirement really is C only, I think it's pretty clear that you should go for Check. If the requirement for C only is not for the test framework then I would go for Google Test, since, from what I have seen, it is offering more.

/Dan

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜