LP 1198465: Initial tests for conditional negative balances
authorRemington Steed <rjs7@calvin.edu>
Fri, 17 Jul 2015 19:42:37 +0000 (15:42 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 17 Jul 2015 20:42:15 +0000 (16:42 -0400)
commitbd060c1416b42882b889ace7b891134cb2f6e6fd
treeb7ba207402581d9db7340ab7533ec1a3fc93f11f
parentf3df451bfafebda84b18a8b7e59228de68f5ef0f
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>
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]