Sha256: f57ac747afdfd2cd608f38038cac45e47abe95fbe4ad2b7071788c6ed88af1cd
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# the default behavior of Test::Unit::TestCase should be to execute test # methods in alphabetical order. # When executed, should print "A.B.C.D.E.F.G.H.I.J.K.L.F" # The final F is actually an expected failure: # 1) Failure: # default_test(TC4_No_Test_Methods) $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') unless $SETUP_LOADED require 'watir-classic/testcase' class TC1_Alphabetical_Default < Watir::TestCase execute :alphabetically def test_b; print 'B'; end def test_a; print 'A'; end def test_d; print 'D'; end def test_c; print 'C'; end end class TC2_Sequential < Watir::TestCase def test_b; print 'E'; end def test_a; print 'F'; end def test_d; print 'G'; end def test_c; print 'H'; end end class TC3_Alphabetical_Specified < Watir::TestCase execute :alphabetically def test_b; print 'J'; end def test_a; print 'I'; end def test_d; print 'L'; end def test_c; print 'K'; end end class TC4_No_Test_Methods < Watir::TestCase end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-classic-3.0.0 | unittests/other/testcase_method_order_test.rb |