Hi, I need to get access to the file name of the testcases I’m running,
it is working using variable $0 but only when running the testcases in
eclipse as Ruby Application but not as test::Unit Test, in this case $0
How can I get access to the filenames in this case?
It’s my understanding that $0 is the name of the program entered on the
command line, and FILE is the relative path(from the initial
directory) of whatever file contains FILE.
well… in my case is a little bit more complicated.
this is my scenario:
The file I’m running: testSuites/fileTestsuite.rb
the file with the testcase1: testcases/file1.rb
class MyTestCase1 < GenericClass
GenericClass in on my myFramework and in that file is where I need to
know that the testcase I’m running is on file testcases/file1.rb
Five years later and no solution