Sha256: eb91d9d212bb6021c8a3dc965b09f2694ccc48c4c591eec24b88d1c45f9fce8a

Contents?: true

Size: 1017 Bytes

Versions: 36

Compression:

Stored size: 1017 Bytes

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/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

36 entries across 36 versions & 1 rubygems

Version Path
watir-3.0.0.rc3 unittests/other/testcase_method_order_test.rb
watir-3.0.0.rc2 unittests/other/testcase_method_order_test.rb
watir-3.0.0.rc1 unittests/other/testcase_method_order_test.rb
watir-2.0.4 unittests/other/testcase_method_order_test.rb
watir-2.0.3 unittests/other/testcase_method_order_test.rb
watir-2.0.2 unittests/other/testcase_method_order_test.rb
watir-2.0.2.rc1 unittests/other/testcase_method_order_test.rb
watir-2.0.1 unittests/other/testcase_method_order_test.rb
watir-2.0.0 unittests/other/testcase_method_order_test.rb
watir-2.0.0.rc3 unittests/other/testcase_method_order_test.rb
watir-2.0.0.rc2 unittests/other/testcase_method_order_test.rb
watir-1.9.2 unittests/other/testcase_method_order_test.rb
watir-1.9.2.rc1 unittests/other/testcase_method_order_test.rb
watir-1.9.1 unittests/other/testcase_method_order_test.rb
watir-1.9.1.rc1 unittests/other/testcase_method_order_test.rb
watir-1.9.0 unittests/other/testcase_method_order_test.rb
watir-1.9.0.rc7 unittests/other/testcase_method_order_test.rb
watir-1.9.0.rc6 unittests/other/testcase_method_order_test.rb
watir-1.9.0.rc5 unittests/other/testcase_method_order_test.rb
watir-1.9.0.rc4 unittests/other/testcase_method_order_test.rb