The way I had been going about it:
TestSuite
Requires testcase_classes, is the master test script.
Testcase_classes are classes containing individual
testcases
"class TestClass < Test::Unit::TestCase"
Test cases are methods with names like:
"test_xx_description"
I just run the TestSuite and it runs all the tests in each class.
I named the classes based on each module of the app I'm testing, the
tests are named by what they are checking for.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon
Sent: Wednesday, May 24, 2006 11:51 AM
To: [email protected]
Subject: Re: [Wtr-general] Grouping Test Cases
On 5/24/06, Adrian Rutter <[EMAIL PROTECTED]> wrote:
>
> Could anyone tell me how they are grouping test cases and running
suites
> within Watir?
>
#run_suite.rb
topdir = File.join(File.dirname(__FILE__))
Dir.chdir topdir do
tests = Dir["test*"]
tests.each{|x| require x}
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general