Ah, so that means when I'm using this technique with Watir I need to: require 'watir' include Watir require 'test/unit' #needed!
class Whatever < Test::Unit::TestCase #needed! #def my Watir stuff here end Right? Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Williams, Kevin Sent: Friday, July 01, 2005 10:28 AM To: [email protected] Subject: RE: [Wtr-general] Getting NUnit XML output from Watir This appears to be the output structure of Ruby's Unit::Test framework. I guess that means that you could run any Ruby unit tests from Nunit - cool! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hanselman Sent: Friday, July 01, 2005 11:02 AM To: [email protected] Subject: RE: [Wtr-general] Getting NUnit XML output from Watir The latest dist of Watir that I installed prints out X tests, X assertions, X failures, X errors every time. It's Watir that does the "rolledup" printing, not the descriptive PUTS calls. Those are just to be pretty and are included in the middle of the standard out that Watir writes. Scott Hanselman -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Williams, Kevin Sent: Friday, July 01, 2005 7:19 AM To: [email protected] Subject: RE: [Wtr-general] Getting NUnit XML output from Watir I'm looking at this now - haven't tried it just yet. The only question I have, which I assume will be answered when I try it, is what generates the output that is parsed by the Regex: @"(?<tests>\d+) tests, (?<assertions>\d+) assertions, (?<failures>\d+) failures, (?<errors>\d+) errors" The Ruby code in the appears to only write "Test Passed" or "Test Failed!" to the standard output. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hanselman Sent: Friday, July 01, 2005 1:04 AM To: [email protected] Subject: [Wtr-general] Getting NUnit XML output from Watir Hello, I'm new here, so forgive my ignorance. I recently discovered Watir for myself and have done a poorman's integration with NUnit (http://www.hanselman.com/blog/IntegratingRubyAndWatirWithNUnit.aspx) but am curious if there's a way to get NUnit "Test Suite" XML so that I might roll Watir Use Case Tests into my existing NUnit Reporting infrastructure. Scott Hanselman http://www.computerzen.com <http://www.computerzen.com/> _______________________________________________ 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 _______________________________________________ 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
