Unit test approach for Ruby extension

Hi,

  I am writing a Ruby extension in C++.

  Do we write unit test separately for the C++ code and the Ruby code?

  I am familar with cppunit and recently with Ruby's build in unit
testing facility.

  Could someone advice?

  Thanks in advance.

Cheers

I would test it from ruby because it is easier to write ruby code than C++ code.

···

On Aug 9, 2006, at 10:45 PM, yue_nicholas@hotmail.com wrote:

Hi,

  I am writing a Ruby extension in C++.

  Do we write unit test separately for the C++ code and the Ruby code?

  I am familar with cppunit and recently with Ruby's build in unit
testing facility.

  Could someone advice?

  Thanks in advance.

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

Eric Hodel wrote:

···

yue_nicholas@hotmail.com wrote:

  Do we write unit test separately for the C++ code and the Ruby code?

I would test it from ruby because it is easier to write ruby code than C++ code.

Concur.

We even went that route for a stand-alone C code. We briefly
looked at using swig to do the interface, but ended up writing
the interface code by hand.

Regards,
--
Bil
http://fun3d.larc.nasa.gov