A
Anil Gollaa
Hi,
How can i retrieve the testcase name, while running the testcases of the
class
inherited by unit testcase.
For example in the below script
I would like to access the testcase name in setup function.
Testscript
require "test/unit"
class TestSimpleNumber < Test::Unit::TestCase
def setup
# need to get the testcase name that is executed when we run the the
testcases
# using ruby
end
def test_simple
assert_equal("abc", "abc" )
end
End
Please help me in this regard.
How can i retrieve the testcase name, while running the testcases of the
class
inherited by unit testcase.
For example in the below script
I would like to access the testcase name in setup function.
Testscript
require "test/unit"
class TestSimpleNumber < Test::Unit::TestCase
def setup
# need to get the testcase name that is executed when we run the the
testcases
# using ruby
end
def test_simple
assert_equal("abc", "abc" )
end
End
Please help me in this regard.