D
Dmitry V. Sabanin
Hello,
Were there any major changes to TestUnit work since ruby version 1.7?
My tests worked just before I've setup ruby 1.8.1(from cvs), maybe problem is not
in TestUnit at all, but I need to now, if there were something that might break the
tests written for older versions of TestUnit.
The problem is that tests behavior is kind of insane.
I have this test case runner, run_tests.rb(see comments):
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'tests/test_bla1.rb'
require 'tests/test_bla2.rb'
require 'tests/test_bla3.rb'
#
# Ruby never comes to this place now, the results are shown up already.
# I'm woundering why is this happening? The strange thing is also that
# test case in test_bla2.rb doesn't checked at all, but in test_bla3.rb
# it is.
#
class TS_WebTests
def self.suite
suite = Test::Unit::TestSuite.new "The Bla Library Tests"
suite << TC_Bla1.suite
suite << TC_Bla2.suite
suite << TC_Bla3.suite
return suite
end
end
Test::Unit::UI::Console::TestRunner.run(TS_WebTests)
Were there any major changes to TestUnit work since ruby version 1.7?
My tests worked just before I've setup ruby 1.8.1(from cvs), maybe problem is not
in TestUnit at all, but I need to now, if there were something that might break the
tests written for older versions of TestUnit.
The problem is that tests behavior is kind of insane.
I have this test case runner, run_tests.rb(see comments):
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'tests/test_bla1.rb'
require 'tests/test_bla2.rb'
require 'tests/test_bla3.rb'
#
# Ruby never comes to this place now, the results are shown up already.
# I'm woundering why is this happening? The strange thing is also that
# test case in test_bla2.rb doesn't checked at all, but in test_bla3.rb
# it is.
#
class TS_WebTests
def self.suite
suite = Test::Unit::TestSuite.new "The Bla Library Tests"
suite << TC_Bla1.suite
suite << TC_Bla2.suite
suite << TC_Bla3.suite
return suite
end
end
Test::Unit::UI::Console::TestRunner.run(TS_WebTests)