Boost logo

Boost Testing :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-09-28 11:43:04


Vladimir Prus wrote:
> Rene Rivera wrote:
>> K. Noel Belcourt wrote:
>>> On Sep 27, 2007, at 10:46 AM, Rene Rivera wrote:

>> 3. We abandon the XSL processing now... But of course there's really no
>> looming equivalent to replace it.
>
> Well, various page template languages will be much much better. For Python,
> two solutions from Zope are appropriate: DocumentTemplate and ZPT.

Most likely :-) And certainly any where the hard processing is done in a
real language.

> I wrote a rough prototype of report generation using Python/ZPT.
>
> The Python code is:
>
> https://zigzag.lvk.cs.msu.su/~ghost/regression_reports/report.py
>
> and ZPT template is:
>
> https://zigzag.lvk.cs.msu.su/~ghost/regression_reports/template.xml
>
> And the final result is:
>
> https://zigzag.lvk.cs.msu.su/~ghost/regression_reports/report.html

Neat.

> The template was obtained from HTML generated now, by replacing actual data
> with placeholders that are expanded using ZPT. You can see that the list of
> test results is still hardcoded, but all OS, runner, and test list data are
> setup in Python. It took me about 2 hours to arrive at this (including
> re-learning ZPT).
>
> What it means, IMO, that the effort to redo entire reporting system is not
> impossibly high -- it's probably less than 40 hours. Of course, where do get
> those 40 hours is still the question. I suppose if somebody takes care
> about getting data from XML files into Python classes, I can convert a page
> or two.

Well I have experience on the aspect of parsing XML data in Python, and
looking at your Python script above it looks straightforward. But yea,
finding the time to do this is problematic for me. This just makes it
even more obvious we need to have the results in a database :-(

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost-testing list run by mbergal at meta-comm.com