]> git.evergreen-ils.org Git - Evergreen.git/commit
LP 1198465: Initial tests for conditional negative balances
authorRemington Steed <rjs7@calvin.edu>
Fri, 17 Jul 2015 19:42:37 +0000 (15:42 -0400)
committerBen Shum <bshum@biblio.org>
Tue, 28 Jul 2015 20:24:57 +0000 (16:24 -0400)
commit336f8a60f9e46a8b4956c2b46694cc93da1b11d9
treeb80f20fcfbcf710d4e557a4f8c653603b2cc1d71
parent7c8e241b3c169536ab25485988c0efabde420782
LP 1198465: Initial tests for conditional negative balances

This is a first commit of work-in-progress for testing the conditional
negative balances features.  It covers 9 of the 14 test cases listed
here (as of today):

http://evergreen-ils.org/dokuwiki/doku.php?id=qa:billing_test_cases

TODO:
- The test is currently an SQL setup file plus a Perl live test file.
  One simple improvement would be to switch the setup process to
  cstore calls within the Perl test file.  This would be both more
  contained and more robust.
- A second step to more advanced and useful tests would be to use
  higher-level API calls to create portions of the setup rather than
  doing everthing manually.  However, some test conditions cannot be
  reasonably setup with the normal API calls (e.g. bills of a specific
  age, or bills using a legacy format no longer generated by current
  code), so certain areas will likely always require direct
  manipulation.

Signed-off-by: Daniel Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/live_t/09-lp1198465_neg_balances.t [new file with mode: 0644]
Open-ILS/src/sql/Pg/live_t/lp1198465_run_this_before_livetests.sql [new file with mode: 0644]