views:

84

answers:

3

What is the preferred unit testing tool for C development in Visual Studio?

+1  A: 

A quick Google search reveals a few unit testing tools for C:

Check
CUnit

I doubt they are designed to work with Visual Studio specifically, although I'm certain you'd be able to use these tools anyways as Visual Studio has good support for 3rd party tools.

Charlie Salts
A: 

CUnit is supposed to be good, but I have not used it myself...

EricSchaefer
A: 

I like Google Test... It provides project files for Visual Studio

And you can use Google Mock framework

Sebastián
Can cou write pure C (not C++) tests with Google Test?
EricSchaefer
Not really, test files must be compiled as C++. But if you want to test pure C code you can do it from Google Test Framework
Sebastián