]> git.koha-community.org Git - koha.git/commit
Bug 13274: t/00-load.t shouldn't depend on the DB
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 18 Nov 2014 03:25:09 +0000 (22:25 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 12:50:27 +0000 (09:50 -0300)
commit340e23ece5afd6c8fa944140687e2c0fdc7ff634
tree66d8922fc7e2e494bd7c8074ced685568b0a948f
parent1e98ff655db0e85ee3a2564dadcd8a397b21c505
Bug 13274: t/00-load.t shouldn't depend on the DB

To reproduce:
- Stop your MySQL server:
  $ sudo service mysql stop
- Run
  $ prove t/00-load.t
=> FAIL: some tests fail because of mysql stopped

To test (MySQL still stopped)
- Apply the patch
- Run
  $ prove t/00-load.t
=> SUCCESS: tests pass because the ycan be loaded regardless of
            the absence of the DB server
- Sign off :-D

NOTE: Even seems to grab more than expected, which is good.
      349 tests in master vs 364 in this branch = 16,
      but removed block is only 13 (lines 20-32).
      Also ran koha-qa test tool. :)

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Works as described, tests passing now without database available.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/00-load.t