in reply to Sharing data between tests?
I use fixtures with a temporary database (DBICx::TestDatabase). I usually create a module under t/lib/ which performs bulk inserts of the relevant data.
I don't create data in one test and use it in another because that implies an ordering between tests that can be fragile, and works against test parallelism.
If you need more details, let me know; I can post code when I have more time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sharing data between tests?
by ghenry (Vicar) on Jan 31, 2012 at 21:33 UTC | |
by chromatic (Archbishop) on Jan 31, 2012 at 23:57 UTC |
In Section
Seekers of Perl Wisdom