Testing reports

Derek Atkins warlord at MIT.EDU
Wed Mar 28 04:50:30 EDT 2012


John Ralls <jralls at ceridwen.us> writes:

> Ah. I learn from that link that Rspec is Ruby's implementation of
> "Behavior Driven Development" [1]. Since Gnucash is a "legacy"*
> project, it's a bit late -- or early -- to embrace that paradigm., but
> we can still apply the testing strategy.

That was my point, to apply the strategy, not necessarily the
implementation.

>  It doesn't appear to me that Rspec would work very well testing
>  non-Ruby programs, but I'm willing to be convinced otherwise. But
>  that might be unnecessary if we can find tools which are a better

Or we could roll our own.  I don't know how much work it would be to do
what I suggested in my last email.  Basically we just need a way to run
a report against an instance of a data file, get the HTML output, and
normalize said output.  Then it's just a question of running various
reports against various test file fixtures and comparing the normalized
HTML outputs to "known" values.

-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