Sorry if this has come up and I missed it but I just upgraded to
version 0.7.2 and am having trouble with transactions. In my
features/support/env.rb I always just had the
use_transactional_fixtures commented out. Now, I see cucumber wants to
run with transaction wrappers. Tests run fine if I tag them with the
@no-txn tag but I can not get the default to not use transactions
(have tried various flavors of the env.rb). Any help or advice much
appreciated. Please know that the integration domain is very, very
complicated and we use the resultant data state for all kinds of
things so this is important to us despite the atomicity of the
transactions. We long ago wrote our own cleaner.
Many thanks,
Tim
> --
> You received this message because you are subscribed to the Google
> Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en
> .
>
Thank you.
Tim
I don't know what Rails defaults to if you don't explicitly set it to
true or false.
I recommend you set it explicitly to true or false. (I'm a little
confused about what you want).
> Now, I see cucumber wants to
> run with transaction wrappers. Tests run fine if I tag them with the
> @no-txn tag but I can not get the default to not use transactions
> (have tried various flavors of the env.rb).
If you set
Cucumber::Rails::World.use_transactional_fixtures = true
Then all scenarios will have transactions - *except* the ones you tag
with @no-txn.
If you set
Cucumber::Rails::World.use_transactional_fixtures = false
Then *none* of the scenarios will use transactions - regardless of
whether they are tagged with @no-txn or not.
Can you describe in more detail how you want Cucumber to behave and
what exactly your settings are?
Do you want to turn off transactions across the board? (In which case
@no-txn is unnecessary).
Aslak
> Any help or advice much
> appreciated. Please know that the integration domain is very, very
> complicated and we use the resultant data state for all kinds of
> things so this is important to us despite the atomicity of the
> transactions. We long ago wrote our own cleaner.
>
> Many thanks,
>
> Tim
>
Den 25. mai 2010 kl. 21.15 skrev Tim Walker <walk...@gmail.com>:
> Hi,
>
> Sorry if this has come up and I missed it but I just upgraded to
> version 0.7.2
Did you script/generate cucumber like the upgrading instructions said?
Aslak
> and am having trouble with transactions. In my
> features/support/env.rb I always just had the
> use_transactional_fixtures commented out. Now, I see cucumber wants to
> run with transaction wrappers. Tests run fine if I tag them with the
> @no-txn tag but I can not get the default to not use transactions
> (have tried various flavors of the env.rb). Any help or advice much
> appreciated. Please know that the integration domain is very, very
> complicated and we use the resultant data state for all kinds of
> things so this is important to us despite the atomicity of the
> transactions. We long ago wrote our own cleaner.
>
> Many thanks,
>
> Tim
>