tags:

views:

869

answers:

3

I love the Ruby RSpec BDD development style. Are there any good tools for doing this with C/C++?

+6  A: 

cspec is for C. Presumably it will work with C++. There is a list of tools for various languages on the Behavior Driven Development Wikipedia page.

ejgottl
Why is this chosen over cppspec below?
Comptrol
+1  A: 

CppSpec

+2  A: 

It seems you can test your C code using Ruby and RSpec using swig to generate wrappers! See Ben Mabey's post here: http://www.benmabey.com/2007/09/09/bdd_your_c/

I've tried that example out and it worked for me. I'm not sure if anyone has taken it any further.