| Summary: | t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Tomás Cohen Arazi (tcohen) <tomascohen> |
| Component: | Test Suite | Assignee: | Chris Cormack <chris> |
| Status: | CLOSED FIXED | QA Contact: | Galen Charlton <gmcharlt> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | tomascohen |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | Small patch |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Bug Depends on: | |||
| Bug Blocks: | 13275 | ||
| Attachments: |
Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB
Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB Bug 13277: (QA followup) use t::lib::Mocks |
||
|
Description
Tomás Cohen Arazi (tcohen)
2014-11-18 03:59:40 UTC
Created attachment 33634 [details] [review] Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB To reproduce: - Stop your MySQL server: $ sudo service mysql stop - Run $ prove t/SuggestionEngine_AuthorityFile.t => FAIL: some tests fail because of mysql stopped To test (MySQL still stopped) - Apply the patch - Run $ prove t/SuggestionEngine_AuthorityFile.t => SUCCESS: tests pass because the ycan be loaded regardless of the absence of the DB server - Sign off :-D Regards Created attachment 33641 [details] [review] Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB To reproduce: - Stop your MySQL server: $ sudo service mysql stop - Run $ prove t/SuggestionEngine_AuthorityFile.t => FAIL: some tests fail because of mysql stopped To test (MySQL still stopped) - Apply the patch - Run $ prove t/SuggestionEngine_AuthorityFile.t => SUCCESS: tests pass because the ycan be loaded regardless of the absence of the DB server - Sign off :-D Regards Signed-off-by: Magnus Enger <digitalutvikling@gmail.com> Turned off MySQL and ran the tests before and after the patch. Works as advertized. Created attachment 33698 [details] [review] Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB To reproduce: - Stop your MySQL server: $ sudo service mysql stop - Run $ prove t/SuggestionEngine_AuthorityFile.t => FAIL: some tests fail because of mysql stopped To test (MySQL still stopped) - Apply the patch - Run $ prove t/SuggestionEngine_AuthorityFile.t => SUCCESS: tests pass because the ycan be loaded regardless of the absence of the DB server - Sign off :-D Regards Signed-off-by: Magnus Enger <digitalutvikling@gmail.com> Turned off MySQL and ran the tests before and after the patch. Works as advertized. Created attachment 33712 [details] [review] Bug 13277: (QA followup) use t::lib::Mocks Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Patch pushed to master. |