LP 1198465: Initial tests for conditional negative balances
authorRemington Steed <rjs7@calvin.edu>
Fri, 17 Jul 2015 19:42:37 +0000 (15:42 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 24 Jul 2015 00:20:54 +0000 (20:20 -0400)
commitb833354a2f38ec3db3a29f11064a551ab2548f32
treed710ac91956bc7573065dacdd9c5d64a422f98cf
parent7dd738fd7b5c8c5f0f2223036e0dc32b1cdd0c92
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>
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]