Testing reports
Derek Atkins
warlord at MIT.EDU
Mon Mar 26 04:54:35 EDT 2012
John Ralls <jralls at ceridwen.us> writes:
>> So, what's a good test harness for a Scheme report against the GnuCash
>> backend?
>
> 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.
> Regards,
> 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
--
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
More information about the gnucash-user
mailing list