Rafael Torres wrote: > > I’m trying to have my ruby code read Watir test results reported by > the TUnit framework to be able to report them into an excel sheet > along with the traditional console report. I am able to utilize the > Win32OLE library to build my XL interface, but I have to give it the > ability to read test results from TUnit to know what to report on the > sheet (i.e., passed, failed, print out any errors/failures for each > test case, etc.). I tried to look at the Reporter tool designed by > Alexey Verkhovsky (http://test-report.rubyforge.org/) – which builds > an xml or html report off of TUnit – to see if I could understand his > logic to build my XL report, but I’m still unable to accomplish it. > > Based on my research, and trial/error attempts, it seems to me that > what I have to do is create my own test runner – although it’s proving > to be a little cumbersome to me (I’m having a hard time understanding > how TUnit does its internal magic). I’m wondering if there’s an easier > way to accomplish my goal, or if there’s any other idea that can help > me on this. Any feedback is appreciated. > Are you looking to have something that is updated in real time as the tests run. If so, i think you are on the right track.
If not, you might find it easier to just parse the XML from Test Reporter and generate the spreadsheet from that. I've been doing something similar to what you've been doing and am happy to try and answer test-unit questions. Bret _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
