Validation vs Google validation framework for c code

I want to set up a unit testing framework for a c project (c not C ++). I examined this list and checked this thread_flow stack question . I want a framework that I can easily configure for my project, which uses only standard c libraries and compiled and run on Fedora 14 (64-bit). This is not an embedded system, as in the stackoverflow question. It looks like Google Validation and Validation will work best. Do you guys know any advantages / disadvantages of using one over the other or their best option there? I have used JUnit and NUnit in the past for java and C # code. If that matters, I compile and run everything from the command line instead of one from the IDE.

+3
source share
1 answer

... which uses only standard c ... libraries

Why is this requirement so important for a test environment if it is not an embedded system? I believe that you can save your production c code using any C ++ framework.

If the requirement is really only C, I think it's pretty clear that you should go for Check. If the requirement only for C is not related to the test structure, I would go to Google Test, since, from what I saw, it offers more.

/ Dan

+3
source

Source: https://habr.com/ru/post/1789394/


All Articles