[Bug #821] uninitialized constant Test::Unit::AutoRunner


#1

Bug #821: uninitialized constant Test::Unit::AutoRunner
http://redmine.ruby-lang.org/issues/show/821

e$B5/I<<Te(B: Naohisa G.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
Target version: 1.9.1

require ‘test/unit’
Test::Unit::AutoRunner.run(true, ‘./somedir’)

(e$BCme(B: ./somedir
e$B0J2<$K$O%F%9%H$,=q$+$l$?%9%/%j%W%H$,B??t$"$k>uBVe(B)
e$B$r<B9T$9$k$H!"%F%9%H$re(B1e$B7o$b<B9T$;$:!"0J2<$N%(%i!<$,=P$^$9!#e(B

Loaded suite test/runner
Started

Finished in 0.000528 seconds.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
runner.rb:2:in `’: uninitialized constant Test::Unit::AutoRunner
(NameError)

% ruby -v
ruby 1.9.1 (2008-12-01 revision 20438) [i686-linux]

Ruby 1.8.7e$B$G$O@5>o$K%F%9%H$,<B9T$5$l$^$9!#e(B
% ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

[ruby-core:18891]e$B$H4X78$,$"$k$+$b$7$l$^$;$s!#e(B


#2

In article removed_email_address@domain.invalid,
Naohisa G. removed_email_address@domain.invalid writes:

require ‘test/unit’
Test::Unit::AutoRunner.run(true, ‘./somedir’)

(e$BCme(B: ./somedir e$B0J2<$K$O%F%9%H$,=q$+$l$?%9%/%j%W%H$,B??t$"$k>uBVe(B)
e$B$r<B9T$9$k$H!"%F%9%H$re(B1e$B7o$b<B9T$;$:!"0J2<$N%(%i!<$,=P$^$9!#e(B

runner.rb:2:in `’: uninitialized constant Test::Unit::AutoRunner (NameError)

1.9 e$B$Ne(B test/unit e$B$Oe(B 1.8 e$B$Ne(B test/unit
e$B$G$O$J$/!"e(Bminitest e$B$N%i%Ce(B
e$B%Q!<$G!“8=:_e(B Test::Unit::AutoRunner e$B$O$”$j$^$;$s!#e(B

e$B$J$<e(B Test::Unit::AutoRunner e$B$,I,MW$J$s$G$7$g$&e(B?


#3

On Tue, 9 Dec 2008 14:57:36 +0900
Tanaka A. removed_email_address@domain.invalid wrote:

1.9 e$B$Ne(B test/unit e$B$Oe(B 1.8 e$B$Ne(B test/unit e$B$G$O$J$/!"e(Bminitest e$B$N%i%Ce(B
e$B%Q!<$G!“8=:_e(B Test::Unit::AutoRunner e$B$O$”$j$^$;$s!#e(B

e$B$J$<e(B Test::Unit::AutoRunner e$B$,I,MW$J$s$G$7$g$&e(B?

1.8e$B$GF0$$$F$$$?%9%/%j%W%H$r:G>.$N<j4V$Ge(B1.9e$BBP1~$K0\9T$9$k$?$a$G$9!#e(B
e$B$=$7$F!"2DG=$J8B$jF1$8%3!<%I$Ge(B1.8e$B$He(B1.9e$B$NN>J}$GF0$/$h$&$K$7$?$$$G$9!#e(B

e$B<+:n$N%W%m%0%i%$re(B1.9e$B$KBP1~$5$;$h$&$H$9$k>l9g!"$^$:$O%F%9%H$r<B9T$7$Fe(B failuree$B$d%(%i!<$,=P$?>l=j$r=$@5$9$k$H$$$&<j=g$rF'$$3$H$,B?$$$@$m$&e(B
e$B$H?dB,$7$^$9$,!"e(BTest::Unit::AutoRunnere$B$,GQ;_$5$l$F$7$^$&$H!"e(B
Test::Unit::AutoRunnere$B$r%F%9%H$K;HMQ$7$F$$$k%=%U%H$N>l9g$O!"e(B
e$B$$$-$J$j%F%9%H$,e(B1e$B8D$b<B9T$5$l$J$$>uBV$K$J$C$FESJ}$KJk$l$k5$$,$7$^$9!#e(B

e$B$b$C$H$b!“e(BTest::Unit::AutoRunnere$B$Oe(B1.8.2e$B0JA0$He(B1.8.3e$B0J9_$Ge(B
e$BBh0l0z?t$N0UL#$,??5U$K$J$C$F$7$^$C$?$N$G!”$=$3$^$G9M$($k$H!"e(B
e$B$I$N$$Ae(BRUBY_VERSIONe$B$GH=JL$7$FJ,4t$9$kI,MW$,$"$k$?$a!"e(B
1.9e$B$GF1DxEY$N5!G=$,JL%/%i%9e(B/e$BJL%a%=%C%I$GDs6!$5$l$k$N$J$i!"e(B
e$B$=$A$i$r;H$&$h$&$KJQ99$9$l$Pe(BOKe$B$+$b$7$l$^$;$s!#$H$O$$$(!“e(B
e$BF1Ey5!G=$,$”$k$J$i!"2?$i$+$N%i%C%Q$rDs6!$7$FM
$7$$$H$O;W$$$^$9!#e(B


#4

In article removed_email_address@domain.invalid,
Naohisa GOTO removed_email_address@domain.invalid writes:

e$B$J$<e(B Test::Unit::AutoRunner e$B$,I,MW$J$s$G$7$g$&e(B?

1.8e$B$GF0$$$F$$$?%9%/%j%W%H$r:G>.$N<j4V$Ge(B1.9e$BBP1~$K0\9T$9$k$?$a$G$9!#e(B
e$B$=$7$F!"2DG=$J8B$jF1$8%3!<%I$Ge(B1.8e$B$He(B1.9e$B$NN>J}$GF0$/$h$&$K$7$?$$$G$9!#e(B

e$B8_49@-$,:G$b=EMW$J$ie(B gem e$B$Ge(B test-unit
e$B$rF~$l$k$N$,$$$$$s$8$ce(B
e$B$J$$$G$7$g$&$+!#e(B

e$B$"$H$O!"$I$s$J5!G=$r4|BT$7$F$$$k$N$+$o$+$i$J$$$N$G!“4+$a$k$Ne(B
e$B$,E,@Z$+$I$&$+$O$o$+$i$J$$$N$G$9$,!”$"$k%G%#%l%/%H%j0J2<$N$re(B
e$B:F5"E*$K%F%9%H$9$k$/$i$$$J$ie(B testrb e$B$G$G$-$^$9!#e(B


#5

e$B%A%1%C%He(B #821 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.)

Target version 1.9.1 Release Candidatee$B$+$ie(B1.9.xe$B$KJQ99e(B

@ Rubye$B3+H/2q5D$K$Fe(B

  • e$B$3$N%1!<%9$G$7$?$i!"e(Btestrbe$B$r;H$C$F$/$@$5$$!#e(B

1.9e$B$G$O!“e(Bgeme$B2=$5$l$?8E$$%P!<%8%g%s$Ne(Btest/unite$B$b$”$j$^$9!#e(B

  • 1.9.1e$B$Oe(Bfeature
    freezee$B$5$l$F$$$k$N$G!"$=$l0J30$N%f!<%9%1!<%9$Ge(BAutoRunnere$B$,I,MW$+$I$&$+$K$D$$$F$Oe(B1.9.2e$B0J9_$rG0F,$K8!F$$7$^$9!#%f!<%9%1!<%9$NDs6!$O4?7^$7$^$9!#e(B

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


#6

e$B%A%1%C%He(B #821 e$B$,99?7$5$l$^$7$?!#e(B (by Naohisa G.)

e$B%f!<%9%1!<%9$H$O$A$g$C$H0c$&$+$b$7$l$^$;$s$,!“e(B
setup.rb (http://www.loveruby.net/ja//projects/setup/ ) e$B$,e(B
% ruby setup.rb test
e$B$K$F%F%9%H$r<B9T$9$k:]$Ke(B AutoRunner
e$B$r;HMQ$7$F$$$k!”$H$$$&$N$O$"$j$^$9!#e(B
e$B$?$@$7!"$=$b$=$be(B setup.rb e$B$,e(B Ruby 1.9.2
e$B$G@5>o$KF0$/$+$I$&$+$OL$3NG’$G$9!#e(B

e$B;d<+?H$O!“e(Bgem e$B$r%$%s%9%H!<%k!“e(Brake test
e$B$K0\9T!”$J$IBeBX<jCJ$O$”$k$N$G!“e(B
AutoRunner e$B$,L5$$$N$,e(B Ruby 1.9.x
e$B$N;EMM$H$$$&$3$H$J$i0[5D$O$”$j$^$;$s!#e(B

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


#7

e$B%A%1%C%He(B #821 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BFeedbacke$B$KJQ99e(B
ruby -v ruby 1.9.2dev (2009-10-19 trunk 25399)
[x86_64-freebsd7.2]e$B$K%;%C%He(B

e$B$3$l$Oe(B close e$B$7$A$c$C$F$$$$$G$9$+!)e(B
1.9.2 e$B$Ge(B AutoRunner
e$B$,M_$7$$J}$O%f!<%9%1!<%9$H$H$b$K0[5D$r>’$($F$/$@$5$$e(B

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


#8

e$B%A%1%C%He(B #821 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)

e$B%9%F!<%?%9e(B Feedbacke$B$+$ie(BRejectede$B$KJQ99e(B

e$B1sF#$G$9!#e(B

e$B5/I<<T$N8eF#$5$s$,G<F@$7$F$$$k$h$&$J$N$G!"e(B1.9.x e$B$N;EMM$H$7$Fe(B
close e$B$7$^$9!#Hs>o$K0d48$G$9$,!#e(B

e$BI8=`E:IU%i%$%V%i%j$N@Z$jBX$($K$OCm0U$7$h$&$H$$$&6571$G$9$M!#e(B
e$B<+>N!V8_49!W$r<jJ|$7$G?.MQ$9$k$J$H$+!#e(B


Yusuke E. removed_email_address@domain.invalid

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