Unit test filename convention

M

Manlio Malaidini

All,

I'm just starting with Netbeans 6.1 after having used Eclipse RDT for a
while. I was used to keep unit tests within the same file (delimited by
if $0 == __FILE__), but now I guess there's a shift towards separate
files.

Which is the current trend in the community for what is related to unit
tests filename? I've never bought into the TC_* style, it's ugly and
fairly disruptive. What about yada_test.rb for class Yada defined in
yada.rb?

Thanks
MM
 
E

Eric Hodel

All,

I'm just starting with Netbeans 6.1 after having used Eclipse RDT
for a
while. I was used to keep unit tests within the same file (delimited
by
if $0 == __FILE__), but now I guess there's a shift towards separate
files.

Which is the current trend in the community for what is related to
unit
tests filename? I've never bought into the TC_* style, it's ugly and
fairly disruptive. What about yada_test.rb for class Yada defined in
yada.rb?


lib/yada.rb # class/module Yada
test/test_yada.rb # class TestYada < Test::Unit::TestCase

(Which works out-of-the-box with autotest, but since you're using
Eclipse, you probably don't care.)
 
M

Manlio Malaidini

Eric said:
lib/yada.rb # class/module Yada
test/test_yada.rb # class TestYada < Test::Unit::TestCase

It makes perfect sense, thank you.
(Which works out-of-the-box with autotest, but since you're using
Eclipse, you probably don't care.)

I've just switched to Netbeans. So far so good. Well, much better to be
honest.

Thanks
MM
 
M

mmalaidini

Something strange: I haven't seen your response in neither ruby-
talk.org or ruby-forum. I guess you posted from comp.lang.ruby.

So the question is: what's the status of the bridge?

Thanks
MM

[...]
 

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

Forum statistics

Threads
474,289
Messages
2,571,435
Members
48,120
Latest member
Natbelix

Latest Threads

Top