Discussion: bug in Test Unit?
Afficher un message
Vieux 12/03/2008, 23h03   #1
Nasir Khan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut bug in Test Unit?

[Note: parts of this message were removed to make it a legal post.]

In unit.rb with "ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]"

at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run
end
end


if Test::Unit.run is set as false the autorunner will run, if it is set as
true the autorunner will not run.
I don't think this was the intention.

It should read as
unless $! && ! Test::Unit.run?

or (more readable).
if Test::Unit.run? && $!.nil?

Unless I am missing somethig...

Thanks
Nasir

  Réponse avec citation
 
Page generated in 0,04526 seconds with 9 queries