[rspec-users] Testing c code with rspec?
ben at benmabey.com
Sun Aug 26 23:45:24 EDT 2007
Ben Mabey wrote:
> Hey all,
> Has any one ever tested or try to test c code with rspec? I am using
> system calls to my compiled c program and testing against the standard
> output but I would like to get a lot more granular than this. I have
> experimented with using RubyInline to test individual functions and that
> works on functions that are not calling other c functions. I have some
> other ideas on how to do this but they all seem around about ways... I
> have never used RubyInline before nor have I integrated c or c++ with
> Ruby before so I'm guessing there is a much better way to go about
> this. Any ideas/suggestions on how to best test c code with rSpec?
> rspec-users mailing list
> rspec-users at rubyforge.org
Hmm.. I'm looking into SWIG right now and it is looking promising....
From what I am reading it doesn't look like it would be too hard to
test c with rspec via SWIG. I'd still be curious about any suggestions
everyone else might have. Thanks,
More information about the rspec-users