]> git.koha-community.org Git - koha.git/commit
Bug 11401: (followup) make tests run on absent deps
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 14 Nov 2014 18:28:55 +0000 (15:28 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 14 Nov 2014 18:32:25 +0000 (15:32 -0300)
commit348bca3dbb200627b3f3fd3ae9aae2d012892ecd
tree23a5b769d5505d6c3effd694c2c048b43e017b45
parent63dd425a46de599be25bb2ccb10bd3726d355de8
Bug 11401: (followup) make tests run on absent deps

The current code breaks if a dependency is missing. The evals are
rearranged so there's no error on missing dependency.

To reproduce:
- Have a dependency for t/NorwegianPatronDB.t removed
- Run
  $ prove t/NorwegianPatronDB.t
=> FAIL: You see an error similar to this (may vary depending on the lib you removed):

t/NorwegianPatronDB.t .. You tried to plan twice at t/NorwegianPatronDB.t line 37.

- Apply the patch
- Run
  $ prove t/NorwegianPatronDB.t
=> SUCCESS: Tests are skipped on missing lib

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