From: David Mitchell Date: 2008-07-15T16:19:56+09:00 Subject: Is it possible to dynamically extend Test::Unit test cases? Hello list, I've got some "normal" test cases that look like this class Testcases < Test::Unit::TestCase def setup ... end def teardown ... end def test_1 ... end def test_2 ... end end The test cases run as expected, but now I need to add some new test cases at run time. What I think I need to do is something like this require 'testcases' t = Testcases.new t.send(:define_method, "test_defined_at_run_time", "") but I'm getting "wrong number of arguments (0 for 1)" when I try to create the instance of Testcases. Is there some way around this? Thanks in advance David Mitchell