Unit test approach for Ruby extension

Y

yue_nicholas

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
 
E

Eric Hodel

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.

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

Bil Kleb

Eric said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,687
Latest member
IngridXxj

Latest Threads

Top