https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42218 --- Comment #42 from Michaela Sieber <michaela.sieber@kit.edu> --- Created attachment 210710 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210710&action=edit Bug 42218: Update unit tests The harvester and CounterFile tests no longer count added or skipped yearly rows. They check instead that erm_usage_yus holds the summed totals after an import, and that a second harvest of the same file leaves the yearly count unchanged. YearlyUsage.t covers rebuild: the sum per year and per metric type, a changed or removed month, rows with NULL key columns, other years and report types, the UsageObject getter, to_api, and the read-only store and delete. Test plan: prove -l t/db_dependent/Koha/ERM/EUsage/YearlyUsage.t \ t/db_dependent/Koha/ERM/EUsage/COUNTER_5/CounterFile.t \ t/db_dependent/Koha/ERM/EUsage/COUNTER_5.1/CounterFile.t \ t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t yarn cypress run --spec t/cypress/integration/ERM/ModuleDashboard_spec.ts Assisted-by: Sonnet 5 (Anthropic) Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu> Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> -- You are receiving this mail because: You are watching all bug changes.