From: Dean Wampler Date: 2008-02-13T12:29:09+09:00 Subject: Re: How do C programmers do unit testing? ------=_Part_40192_2447894.1202873354606 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Feb 12, 2008 10:55 AM, M. Edward (Ed) Borasky wrote: > This may seem like a silly question, but how do C programmers (assume > gcc/linux for now) do behavior-driven/test-driven development? Aside > from the obvious cheat (using RSpec to compile, link and execute the C > code) are there tools in C to do this? I blogged about the "obvious cheat" recently. It's an "automate-able" way to expose C and C++ to Ruby, and hence RSpec, using SWIG. (That is, it could be automated and I hope to do that eventually). http://blog.objectmentor.com/articles/2008/02/04/unit-testing-c-and-c-with-ruby-and-rspec It should work pretty well right now for C. There are some issues still with C++. Dean Wampler http://www.objectmentor.com http://www.aspectprogramming.com http://aquarium.rubyforge.org http://www.contract4j.org ------=_Part_40192_2447894.1202873354606--