Ruby Forum Test > How to launch only one functional test

Posted by Eric Wathelet (ewathele)
on 28.03.2008 11:51
Hi,
I'm working on the validation of Ruby implementation on OpenSolaris.
I've download the functional test suite and i can execute the test suite
without any problem.

My problem is try to launch tests individually, it easy when test names
are unique (by the command : ruby runner.rb -n
test_BasicWriter_close_on_terminate -b ./csv )

But some directories have more that one test using the same name, for
example test_01 in ./drb directory. I cannot use -n and -t parameter
because the selection is done either by the Name or the TestCase.
I used also the -a parameter defining the file where tests are located,
but still the same issue, some tests name are identical in the file see
example :
# ruby -w runner.rb  -a ./drb/test_drb.rb -n test_01 -v

Loaded suite test_drb.rb
Started
test_01(TestDRbAry): .
test_01(TestDRbCore): .
test_01(TestDRbMServer): .
test_01(TestDRbSafe1): .

Finished in 0.465122 seconds.

4 tests, 10 assertions, 0 failures, 0 errors


Is a solution exist ?

Thanks

Eric