Unit test filename convention

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

On Mar 29, 2008, at 16:19 PM, Manlio Malaidini wrote:

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.)

Eric H. wrote:

On Mar 29, 2008, at 16:19 PM, Manlio Malaidini wrote:

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

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

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

On Mar 29, 9:28 pm, “Phlip” [email protected] wrote:
[…]

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