https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41719
Bug ID: 41719
Summary: Add rendering test coverage for Labels and Patroncards
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Test Suite
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
The label and patron card rendering code paths in C4::Labels::Label and
C4::Patroncards::Patroncard lack test coverage for their core drawing methods.
This patch adds:
- t/db_dependent/Labels/t_Label.t - Extends existing tests with subtests for:
- draw_label_text() - text positioning and formatting
- draw_guide_box() - guide box rendering
- barcode() - all supported barcode types (CODE39, COOP2OF5, INDUSTRIAL2OF5,
EAN13)
- create_label() - printing type orchestration (BIB, BAR, BIBBAR, BARBIB)
- t/db_dependent/Patroncards/t_Patroncard.t - New test file covering:
- draw_guide_box() and draw_guide_grid()
- draw_text() with patron data substitution
- draw_barcode() with multiple barcode types
- draw_image() with generated test image
- End-to-end PDF output validation
Tests use t::lib::TestBuilder fixtures and transaction rollback for isolation.
AI Disclosure:
This contribution was developed with AI assistance (Claude Opus 4.5,
Anthropic). See commit message for full disclosure per
https://wiki.koha-community.org/wiki/Coding_Guidelines#.5BDRAFT.5D_AI_and_LLM-assisted_contributions.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/