[rspec-users] Run cucumber on a different DB than test?
matt at mattwynne.net
Sat Feb 28 03:57:08 EST 2009
On 27 Feb 2009, at 19:56, Forrest Chang wrote:
> ----- Original Message ----
>> Date: Fri, 27 Feb 2009 16:41:53 +0000
>> From: Matt Wynne
>> Please let me know how you get on running them in parallel for CI, as
>> I'd also like to do this. At the moment we just use the two
>> environments for faster feedback when we're regressions testing
>> locally. How are you thinking about collecting the results, for
>> example? Piping them to separate files?
> I have 2 projects in cc.rb. Each is the same codebase but runs a
> different target, so when a git change is pushed, they both kick off
> in parallel.
Of course! I've been meaning to do this for ages, with a third build
that does the both sets of tests and then deploys to the demo
I also did something which you might be interested in with our build
to dynamically build a new database for the tests / features to run
in. Looking back I can't actually see a why I did this, and you might
not need it. I think at the time I suspected that cruise was building
the same project multiple times in parallel if a second commit came in
while a build was already happening. I'm not sure if that's actually
the case right now.
FWIW, here's our cruise rake task. It uses an erb template for
database.yml which you'll see from looking at the code.
More information about the rspec-users