You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by "Christopher K. St. John" <ck...@distributopia.com> on 2002/03/24 10:08:42 UTC

Re: pass/fail reports in xml?

> Ryan Lubke wrote:
> Christopher K. St. John wrote:
> >
> >  It would be nitfy to have GTest output in XML. 
> 
> If you take a look at GTest, the original developers had started
> something like this. 
> 
> I've had intentions to work on this, but time hasn't permitted.
> 

 I took a quick look. What's there can be activated by modifying (for
example) servlet-gtest.xml. Give the first watchdog test a new attribute:

        <watchdog request="..."
            testName="DoFilterTest" debug="0"
            ...
          firstTask="true"
          resultFileName="/home/cks/xxx.results.xml"
        />

 Make sure "resultFileName" comes _after_ "firstTask". You end up
with an ill-formed XML file, but you get something. 

 Looks like it wouldn't be too hard to fix it up, main thing is writing a
filter for the output so the actual/golden listing doesn't contain any
xml-nasties like '<', etc.

 I don't have big blocks of time to devote to this, but I should be able
to grab an hour or two here and there over the next couple of weeks.
I'd just be fixing up what was there (keeping the dual resultOut/system.out
thing).  Does that sound reasonable?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: pass/fail reports in xml?

Posted by Ryan Lubke <rl...@notshabby.net>.
Christopher,

Any contribution of time would be appreciated!

-rl

Christopher K. St. John wrote:
>>Ryan Lubke wrote:
>>Christopher K. St. John wrote:
>>
>>> It would be nitfy to have GTest output in XML. 
>>>
>>If you take a look at GTest, the original developers had started
>>something like this. 
>>
>>I've had intentions to work on this, but time hasn't permitted.
>>
>>
> 
>  I took a quick look. What's there can be activated by modifying (for
> example) servlet-gtest.xml. Give the first watchdog test a new attribute:
> 
>         <watchdog request="..."
>             testName="DoFilterTest" debug="0"
>             ...
>           firstTask="true"
>           resultFileName="/home/cks/xxx.results.xml"
>         />
> 
>  Make sure "resultFileName" comes _after_ "firstTask". You end up
> with an ill-formed XML file, but you get something. 
> 
>  Looks like it wouldn't be too hard to fix it up, main thing is writing a
> filter for the output so the actual/golden listing doesn't contain any
> xml-nasties like '<', etc.
> 
>  I don't have big blocks of time to devote to this, but I should be able
> to grab an hour or two here and there over the next couple of weeks.
> I'd just be fixing up what was there (keeping the dual resultOut/system.out
> thing).  Does that sound reasonable?
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
> 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>