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

On Aug 9, 2006, at 10:45 PM, [email protected] wrote:

Thanks in advance.

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


Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

Eric H. wrote:

[email protected] 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,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs