Module: ParallelCucumber::DSL
- Defined in:
- lib/parallel_cucumber/dsl.rb
Class Method Summary collapse
-
.after_batch {|batch_results, batch_id, batch_env| ... } ⇒ Object
Registers a callback hook which will be called at the end of every batch There can be more than one after_batch, they will be invoked sequentially If one hook fails, the rest hooks will be skipped.
-
.before_batch {|tests, batch_id, batch_env| ... } ⇒ Object
Registers a callback hook which will be called before every batch There can be more than one after_batch, they will be invoked sequentially If one hook fails, the rest hooks will be skipped.
Class Method Details
.after_batch {|batch_results, batch_id, batch_env| ... } ⇒ Object
Registers a callback hook which will be called at the end of every batch There can be more than one after_batch, they will be invoked sequentially If one hook fails, the rest hooks will be skipped
22 23 24 |
# File 'lib/parallel_cucumber/dsl.rb', line 22 def after_batch(&proc) Hooks.register_after_batch(proc) end |
.before_batch {|tests, batch_id, batch_env| ... } ⇒ Object
Registers a callback hook which will be called before every batch There can be more than one after_batch, they will be invoked sequentially If one hook fails, the rest hooks will be skipped
12 13 14 |
# File 'lib/parallel_cucumber/dsl.rb', line 12 def before_batch(&proc) Hooks.register_before_batch(proc) end |