[Bug #1878] testrb can not execute tests in sub directory

Bug #1878: testrb can not execute tests in sub directory
http://redmine.ruby-lang.org/issues/show/1878

e$B5/I<<Te(B: Naohisa G.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]

1.9.2-preview1 e$B$Ne(B testrb
e$B%3%^%s%I$,%5%V%G%#%l%/%H%j$N%F%9%H$r<B9T$G$-$^$;$s!#e(B

$ ruby192 -v
ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]
$ mkdir test
$ echo ‘require “test/unit”; class A<Test::Unit::TestCase; def test_a;
assert_match(/a/, “a”); end; end’ > test/test_a.rb
$ echo ‘require “test/unit”; class B<Test::Unit::TestCase; def test_b;
assert_match(/a/, “b”); end; end’ > test/test_b.rb
$ ls test
test_a.rb test_b.rb
$ testrb192 test
test/test_a.rb: no such file to load – test/test_a.rb
test/test_b.rb: no such file to load – test/test_b.rb
Loaded suite test
Started

Finished in 0.000456 seconds.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
$

e$B$3$s$J46$8$G!"%5%V%G%#%l%/%H%j$N%F%9%H$rFI$s$G$/$l$^$;$s!#e(B
Ruby 1.9.1 [email protected]$7$^$9!#e(B

$ ruby191 -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$ testrb191 test
Loaded suite test
Started
.F
Finished in 0.002952 seconds.

  1. Failure:
    test_b(B) [/tmp/z2/test/test_b.rb:1]:
    Expected /a/ to match “b”.

2 tests, 4 assertions, 1 failures, 0 errors, 0 skips
(e$BCme(B:
assertionse$B$N?t$,B?$$$N$O4{CN$NLdBj!"e(B1.9.2e$B$K$F2r7h$7$?$O$:!#e(B)

e$B%A%1%C%He(B #1878 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r24397.

http://redmine.ruby-lang.org/issues/show/1878

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