Provide a Resource

Bug #1025429 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresfixture
Triaged
High
Unassigned

Bug Description

Hi,

Given that setUp() is fairly expensive, providing a Resource in addition
to a fixture would be useful when you have lots of tests that need
a cluster, as it can be run once, and a speedier reset done between
tests.

Thanks,

James

Revision history for this message
Gavin Panella (allenap) wrote :

The code in https://code.launchpad.net/~james-w/udd/db-resources/+merge/114511 is a good place to pillage for this.

Changed in postgresfixture:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 1025429] Re: Provide a Resource

Are you aware of FixtureResource ?

Revision history for this message
James Westby (james-w) wrote :

On Mon, 16 Jul 2012 23:17:23 -0000, Robert Collins <email address hidden> wrote:
> Are you aware of FixtureResource ?

Yes, the code referenced uses it, patches a bug in it, and extends it to
optimise the reset to avoid the clean + make FixtureResource implies.

Thanks,

James

Revision history for this message
Robert Collins (lifeless) wrote :

On Tue, Jul 17, 2012 at 11:48 AM, James Westby
<email address hidden> wrote:
> On Mon, 16 Jul 2012 23:17:23 -0000, Robert Collins <email address hidden> wrote:
>> Are you aware of FixtureResource ?
>
> Yes, the code referenced uses it, patches a bug in it, and extends it to
> optimise the reset to avoid the clean + make FixtureResource implies.

Cool :)

-Rob

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.