Bug 30870

Summary: Don't skip tests if Test::Deep is not installed
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Victor Grousset/tuxayo <victor>
Severity: normal    
Priority: P5 - low CC: lucas, tomascohen, victor
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.11.00, 22.05.01
Bug Depends on: 29883    
Bug Blocks:    
Attachments: Bug 30870: Don't skip tests if Test::Deep if not installed
Bug 30870: Don't skip tests if Test::Deep if not installed
Bug 30870: Don't skip tests if Test::Deep if not installed

Description Jonathan Druart 2022-05-31 09:29:41 UTC
We are using Test::Deep in different tests, but from t/db_dependent/Koha.t the tests are skippted if the module is not installed.
We must assume the module is installed (or skip everywhere).
Comment 1 Jonathan Druart 2022-05-31 09:31:07 UTC
Created attachment 135483 [details] [review]
Bug 30870: Don't skip tests if Test::Deep if not installed

We are using Test::Deep in different tests, but from t/db_dependent/Koha.t the tests are skippted if the module is not installed.
We must assume the module is installed

Test plan:
  prove t/db_dependent/Koha.t
should return green in ktd
Comment 2 David Nind 2022-05-31 15:19:12 UTC
Created attachment 135513 [details] [review]
Bug 30870: Don't skip tests if Test::Deep if not installed

We are using Test::Deep in different tests, but from t/db_dependent/Koha.t the tests are skippted if the module is not installed.
We must assume the module is installed

Test plan:
  prove t/db_dependent/Koha.t
should return green in ktd

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Victor Grousset/tuxayo 2022-05-31 17:08:45 UTC
Created attachment 135514 [details] [review]
Bug 30870: Don't skip tests if Test::Deep if not installed

We are using Test::Deep in different tests, but from t/db_dependent/Koha.t the tests are skippted if the module is not installed.
We must assume the module is installed

Test plan:
  prove t/db_dependent/Koha.t
should return green in ktd

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 4 Victor Grousset/tuxayo 2022-05-31 17:09:18 UTC
Works, qa script happy, code looks good, passing QA :)
Comment 5 Tomás Cohen Arazi 2022-06-01 16:42:03 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 6 Lucas Gass 2022-06-06 15:38:54 UTC
Pushed to 22.05.x for 22.05.01
Comment 7 Victor Grousset/tuxayo 2022-06-25 21:48:08 UTC
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed.

And nothing to document, resolving.