[Koha-bugs] [Bug 8300] Koha should have mechanized testing suite

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 15 10:26:53 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8300

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17394|0                           |1
        is obsolete|                            |
  Attachment #17395|0                           |1
        is obsolete|                            |

--- Comment #29 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 17437
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17437&action=edit
Bug 8300: Add mechanized unit test for batch import

This new unit test confirms that importing records via the Stage
MARC import tool still works by connecting to a Koha instance and
importing a record then reverting the import, checking at each step
of the way that everything is as it should be.

To test:
1. Install Test::WWW::Mechanize
> sudo apt-get install libtest-www-mechanize-perl
2. Set environment variables to reflect your Koha instance:
> export KOHA_USER=kohaadmin
> export KOHA_PASS=katikoan
> export KOHA_INTRANET_URL=http://localhost:8080
> export KOHA_OPAC_URL=http://localhost
3. Run the test:
> prove t/db_dependent/www/batch.t

This updated patch now handles both MARC21 and UNIMARC installations.

Signed-off-by: Magnus Enger <magnus at enger.priv.no>
All tests pass with marcflavour = MARC21 and NORMARC. Test #15 fails
when marcflavour = UNIMARC, but from what I can see, that is because
I'm testing on a MARC21 setup, missing the UNIMARC frameworks etc.
I'm signing off - QA folks, please ask for a proper UNIMARC signoff
if you feel it is needed.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
Amended patch: Load the POSIX module (for the floor routine).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list