https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42218
--- Comment #20 from Nick Clemens (kidclamp) <[email protected]> --- Created attachment 210003 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210003&action=edit Bug 42218: Update unit tests The harvester and CounterFile tests no longer count added or skipped yearly rows. They check instead that the erm_usage_yus view holds the summed totals, and that a second harvest of the same file leaves the yearly count unchanged. YearlyUsage.t covers the view per year and per metric type, 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 \ t/db_dependent/TestBuilder.t yarn cypress run --spec t/cypress/integration/ERM/ModuleDashboard_spec.ts Assisted-by: Sonnet 5 (Anthropic) Signed-off-by: Clemens Tubach <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
