Hi All, I have defined a number of tests in WATIR, and have created a number of Test Suites. In the test files there is a runTest method. This method was added in as whenever I 'required' the test at the top of the file, I did not want to run it straight away, so rather than having:
require Test1 require Test2 I have: class X Test1.runTest() Test2.runTest() end This all works fine, but the problem I am having is when I want to call individual tests rather than calling the entire suite of tests. If this is the test structure: Suite1 Test1.runTest() Test2.runTest() Suite2 Test3.runTest() Test4.runTest() Then calling ruby Suite1 - everything works great. But calling ruby Test1 - results in nothing happening - not surprising as there is only a method in there which can not be run automatically. A long winded explanation to get round to the question is there an equivalent 'main' method or approach which will not run automatically when I use 'require', but at the same time will allow the individual test to be run easily? Thanks, PMF. _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
