--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think the order of the hooks should be implicit rather than explicit. It becomes just one more thing to manage if it is explicit. For example, in cucumber, the execution of the hooks depends on the order in which they are registered. I think we can take this one step further, maybe something like:BeforeTestRun- GeneralBeforeTestRun- ScopedBeforeScenario - GeneralBeforeScenario - ScopedBeforeScenarioBlock - GeneralBeforeScenarioBlock - ScopedBeforeStep - GeneralBeforeStep - ScopedAnd the inverse of the above for all the After steps. If there are multiple items of the same scope we can either execute them in the order that it is registered, or we can choose to not guarantee the order of similarly scoped steps at all.Thoughts?
On Mon, Mar 16, 2015 at 4:10 PM, Sam Holder wrote:
Yes this is one of the features that is scheduled for V2 I believe. it just needs someone to implement it. :)
On Fri, Mar 13, 2015 at 11:52 AM, Alice Waddicor wrote:
Does anyone know if there are any plans to introduce the ability to order hooks for the same event?For example, I want to use a hook to delete the data generated by a test from storage, and this needs to run before I shut down our DI container. We have a package that provides a hook for DI container setup and shut down at scenario level, but the undefined execution order of hooks for the same event means I can't reliably combine it with a @delete_test_data hook at scenario level.I've ended up not using the DI container hook package, and instead writing a combined hook, but it would be nicer to have a simple way to control the order.
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.