Bug 22357: Do not duplicate report rows if several reports exist
[koha.git] / C4 / SIP / t / README
1 CONFIGURING THE TEST SUITE
2
3 Before you can run the test suite, you need to configure certain
4 information about the SIP server and the ILS data in the file
5 SIPtest.pm.
6
7 RUNNING THE TESTS
8
9 Every file tests a different protocol transaction.
10 Unfortunately, a lot of test cases are missing, but the basics
11 are tested, as are most of the simple error conditions (invalid
12 users, unknown items, checking in item that's not checked out).
13
14 To run a single test, just run
15
16    perl -I.. <file>
17
18 If the test fails, the output should be pretty clear about what
19 went wrong (assuming you can read raw SIP packets).
20
21 To run all the tests, just type
22
23    make test
24
25 Right now, that will run tests for functionality that isn't
26 supported in the Evergreen environment (the two main cases are
27 enable patron and hold management).  To run just the Evergreen tests, use
28
29        make test-openils
30
31 which will run just the tests
32
33         00sc_status.t
34         01patron_status.t
35         02patron_info.t
36         03checkout.t
37         06patron_enable.t
38         08checkin.t
39         09renew.t
40         11item_info.t
41         05block_patron.t
42
43 NOTE: the Block Patron tests are run last because "Patron Enable"
44 isn't supported.  Thus, after running the "Block Patron" test,
45 manual intervention is required to unblock the test patron.
46
47 The Renew All tests will fail when running the stub "ILS"
48 implementation unless there's only one ILS server running.  This
49 won't be a problem for any real backend implementation that
50 properly manages the database of users and items.