Testing reports

John Ralls jralls at ceridwen.us
Mon Mar 26 10:15:02 EDT 2012


On Mar 26, 2012, at 6:47 AM, Colin Scott wrote:

> 
>> I don't know how we could change that.
> 
> Well, it would be a start to ensure that reports produced output in a consistent format!  :-)
> 
> Once that is achieved, it ought to be possible reliably to define "correct" output based on a template.  (But of course I know nothing of your test environment, so it may not apply to you.  I speak of how I would tackle the problem were it my project ... :-)
> 

Do you know how to write automated tests -- in any language -- that accurately check the output format of an HTML page? Automated in this case means the test program decides whether the formatting is correct, no human involved. If you do, or know where I can learn that, please share.

The reports module doesn't have a test environment (and Guile doesn't provide one until 2.0), but the requirement is for automated tests that report success or failure to make check.

Regards,
John Ralls




More information about the gnucash-user mailing list