R
ruud grosmann
hello,
I'd like to be able to run one or two testroutines from a
Test::Unit::TestCase-object. Is that possible?
For example:
in test.rb:
====================
class TC_fe < Test::Unit::TestCase
def test_plus
assert_equal( 1+5, 6)
end
def test_minus
assert_equal( 1-5, 6)
end
end
==============
in do_it:
=================
#!/usr/bin/ruby1.8
require 'test'
===================
Now all testroutines from TC_fe are run. Is it possible only to run
test_minus? Or the routines with the names I collect via command line
arguments?
thanks in advance!
Ruud
I'd like to be able to run one or two testroutines from a
Test::Unit::TestCase-object. Is that possible?
For example:
in test.rb:
====================
class TC_fe < Test::Unit::TestCase
def test_plus
assert_equal( 1+5, 6)
end
def test_minus
assert_equal( 1-5, 6)
end
end
==============
in do_it:
=================
#!/usr/bin/ruby1.8
require 'test'
===================
Now all testroutines from TC_fe are run. Is it possible only to run
test_minus? Or the routines with the names I collect via command line
arguments?
thanks in advance!
Ruud