Changes between Initial Version and Version 1 of Ticket #28263, comment 5


Ignore:
Timestamp:
Jun 1, 2017, 5:20:57 PM (7 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28263, comment 5

    initial v1  
    11Since da9fe5c717c179a9e881a40efd3bfe36a21bf4a6 (#20392) `TestCase` subclasses execution is wrapped in a transaction per-db on class setup and each method is wrapped in a save point per-db.
    22
    3 In your case I think you'd want to disable the transaction wrapping at the class level so test method get wrapped in a transaction instead of save points. I think you should be able to achieve that by also checking that all connections support checkpoints in `TestCase.setUpClass()` and `tearDownClass()`.
     3In your case I think you'd want to disable the transaction wrapping at the class level so test method get wrapped in a transaction instead of save points. I think you should be able to achieve that by also checking that all connections support save points in `TestCase.setUpClass()` and `tearDownClass()`.
Back to Top