If I understood our documentation for running unit tests [1] I should just install the gem via rubygems, checkout the source from github and run the tests from the source.
I did that (and after enabling 'Allow active content to run in files on My Computer') I got [2] for IE and [3] for FF. Environment: Windows 2003, IE 8, Ruby 1.8.7. I will run tests on more platforms tomorrow. Željko -- [1] http://wiki.openqa.org/display/WTR/Running+Unit+Tests+in+Development [2] C:\watir\watir\unittests>core_tests.rb Loaded suite C:/watir/watir/unittests/core_tests Started Loaded suite -e Started Finished in 0.0 seconds. 0 tests, 0 assertions, 0 failures, 0 errors ... Finished in 75.4375 seconds. 1) Failure: test_bare_button(TC_Form_Entertainment) [C:/watir/commonwatir/unittests/form2_test.rb:10]: Exception raised: Class: <NoMethodError> Message: <"undefined method `all' for nil:NilClass"> ---Backtrace--- C:/watir/watir/lib/watir/container.rb:775:in `ole_inner_elements' C:/watir/watir/lib/watir/container.rb:837:in `locate_input_element' C:/watir/watir/lib/watir/input_elements.rb:5:in `locate' C:/watir/watir/lib/watir/element.rb:54:in `assert_exists' C:/watir/watir/lib/watir/element.rb:315:in `enabled?' C:/watir/watir/lib/watir/element.rb:62:in `assert_enabled' C:/watir/watir/lib/watir/element.rb:259:in `click!' C:/watir/watir/lib/watir/element.rb:229:in `click' C:/watir/commonwatir/unittests/form2_test.rb:11:in `test_bare_button' C:/watir/commonwatir/unittests/form2_test.rb:10:in `test_bare_button' --------------- 2) Failure: test_form_outer_html(TC_Forms2) [C:/watir/watir/unittests/form_test.rb:43]: <"\r\n<FORM id=f2 name=test2 action=pass2.html method=get><BR><INPUT type=submit value=Submit> </FORM>"> expected but was <"\r\n<FORM id=f2 method=get name=test2 action=pass2.html><BR><INPUT value=Submit type=submit> </FORM>">. 311 tests, 1465 assertions, 2 failures, 0 errors [3] C:\watir\firewatir\unittests>mozilla_all_tests.rb Loaded suite C:/watir/firewatir/unittests/mozilla_all_tests Started ...
_______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
