[Koha-bugs] [Bug 15150] t/ tests should pass if Test::DBIx::Class is not available
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 16:05:21 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15150
Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #44559|0 |1
is obsolete| |
--- Comment #2 from Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> ---
Created attachment 44575
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44575&action=edit
[SIGNED-OFF] Bug 15150: Make t/ tests skip if Test::DBIx::Class absent
Tests in t/ should always pass for building the Debian packages
for Koha. But we've started using Test::DBIx::Class for writing
mocked tests, and that lib is not (yet) packaged fro Debian 7+.
This means build is failing. Devs and jenkins use the lib from CPAN.
This patch makes the tests skip if the lib is absent.
To test:
- Install Test::DBIx::Class
$ sudo cpanm Test::DBIx::Class
- Run the tests:
$ prove t/
=> SUCCESS: Tests pass
- Uninstall Test::DBIx::Class
$ sudo cpan -U Test::DBIx::Class
- Run the tests:
$ prove t/
=> SUCCESS: Tests still pass (those needing the lib are skipped)
- Sign off :-D
Signed-off-by: Hector Castro <hector.hecaxmmx at gmail.com>
Works as advertised. All test pass successful
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list