Behat: clean up tables after tests

Bug #1922153 reported by Gold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Gold

Bug Description

When behat runs it checks for and cleans up tables if found.

Move the table cleanup to the end of the test run.

Gold (gold.catalyst)
Changed in mahara:
assignee: nobody → Gold (gold.catalyst)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11625

Robert Lyon (robertl-9)
Changed in mahara:
importance: Undecided → Medium
Lisa Seeto (lisaseeto)
Changed in mahara:
status: New → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11625
Committed: https://git.mahara.org/mahara/mahara/commit/6b32359c69f21b3ea3c1be10d5f897541f38856b
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 6b32359c69f21b3ea3c1be10d5f897541f38856b
Author: Gold <email address hidden>
Date: Thu Apr 1 15:26:23 2021 +1300

Bug 1922153 - clean up behat test tables after run

* Reinstate `BehatTestingUtil::drop_site()` in the `BehatHooks::after_suite()`.
* Conditionally clean up the database if tests are successful.
* Remove unexecuted call to disable behat test environment in `cleanup`

Change-Id: I51ebd0a062a4502ae0a68ae3672784304ef26b93

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 21.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.