Implement a reverse mode to keep DB intact
Add a method to launch the tests suite, but keep the DB intact.
First step :
- Create DB backup
- Run the tests
- Restore DB Backup
Simple, but useful.
For a next version, study the possibility of real rollback on tests.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Joël Grand-Guillaume @ camptocamp
- Direction:
- Needs approval
- Assignee:
- Joël Grand-Guillaume @ camptocamp
- Definition:
- Drafting
- Series goal:
- None
- Implementation:
- Deferred
- Milestone target:
- 0.9
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Doing a revert mode in OERP Scenario is not possible because of the wizzard and the on create action. Even if we managed a create and modify pooler in OERPScenario, we can not know the triggered actions of the dump.
What Ipropose is to add the following arguments (To command line or to conf file, I have to see if the script args are still accessible) :
--load_dump will load a dump file
--from_
--from_auto_dump will automatically dump the base set in the config file in a temp folder it will raise en error if an older dump of the base exist in the folder