https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41307

--- Comment #38 from Matt Blenkinsop <[email protected]> ---
Created attachment 210281
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210281&action=edit
Bug 41307: Unit tests

CounterLog.t covers sushi_code_status, decoded_logdetails and the
background_job accessor. UsageDataProvider.t traces every outcome of
harvest_sushi: items with and without exceptions, the retry, no_usage,
no_data and error codes, a request parameter warning next to items, an
error exception next to items (not imported), HTTP failures, a response
that is not JSON, a file too large and an unsupported release; the log
row, its details and the job messages are checked for each. The
harvester job tests check the status in the job report and the log row
of the job. The older harvester test keeps its message format: message
and data, without the severity. The API test covers the status filter
and the background_job embed. The Cypress test covers the import logs
tab.

Test plan:
prove -l t/db_dependent/Koha/ERM/EUsage/CounterLog.t \
  t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t \
  t/db_dependent/Koha/ERM/EUsage/COUNTER_5/CounterFile.t \
  t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t \
  t/db_dependent/Koha/BackgroundJob/ErmSushiHarvester.t \
  t/db_dependent/api/v1/erm_counter_logs.t
yarn cypress run --spec t/cypress/integration/ERM/DataProviders_spec.ts

Assisted-by: Fable 5.1 (Anthropic)

-- 
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/

Reply via email to