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>
Sun, 26 Jul 2015 03:40:05 +0000 (23:40 -0400)
commit00934708c1bfaef0a27008ce54cbd7e1dc97a08c
tree4bc7a14f8465a3e1f0d2264bd29c32662679118b
parent39a5a8a1c38d0900eceba25283ab426276ed0bef
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]