gnucash at double-bars.net
Mon Mar 26 09:47:00 EDT 2012
> 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 ... :-)
-------- Original Message --------
*Subject:* Spam:******, Re: Testing reports
*From:* Derek Atkins <warlord at MIT.EDU>
*To:* John Ralls <jralls at ceridwen.us>
*CC:* "gnucash-user at gnucash.org List" <gnucash-user at gnucash.org>
*Date:* Mon, 26 Mar 2012 04:54:35 -0400
John Ralls <jralls at ceridwen.us> writes:
>> So, what's a good test harness for a Scheme report against the GnuCash
> For what value of "good"?
> There are already some rudimentary tests in the test subdirectories; they mostly just test that you can load a module. The test functions that drive the "make check" tests are in test-core and they are wrapped and accessible from guile. You could surely catch some regressions by expanding those tests.
> That still won't guarantee that a new report option developed for one report will get propagated to all of the other reports.
Moreover, the tests we have don't have a way (AFAIK) to test for the
results of a report. I think we can test that a report loads. We might
even be able to test that a report runs. But I don't think we actually
test the output of the report to make sure that e.g. the report
generates the "correct" output.
I don't know how we could change that.
> John Ralls
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
gnucash-user mailing list
gnucash-user at gnucash.org
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user