module ParallelCucumber::DSL

Public Class Methods

after_batch(&proc) click to toggle source

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 @yieldparam [optional, Hash] batch_results results of all tests in a batch @yieldparam [optional, String] batch_id batch id @yieldparam [optional, Hash] batch_env env of batch

# File lib/parallel_cucumber/dsl.rb, line 22
def after_batch(&proc)
  Hooks.register_after_batch(proc)
end
after_workers(&proc) click to toggle source
# File lib/parallel_cucumber/dsl.rb, line 34
def after_workers(&proc)
  Hooks.register_after_workers(proc)
end
before_batch(&proc) click to toggle source

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 @yieldparam [optional, Array] tests list of tests to run @yieldparam [optional, String] batch_id batch id @yieldparam [optional, Hash] batch_env env of batch

# File lib/parallel_cucumber/dsl.rb, line 12
def before_batch(&proc)
  Hooks.register_before_batch(proc)
end
before_workers(&proc) click to toggle source
# File lib/parallel_cucumber/dsl.rb, line 30
def before_workers(&proc)
  Hooks.register_before_workers(proc)
end
on_batch_error(&proc) click to toggle source
# File lib/parallel_cucumber/dsl.rb, line 38
def on_batch_error(&proc)
  Hooks.register_on_batch_error(proc)
end
on_dry_run_error(&proc) click to toggle source
# File lib/parallel_cucumber/dsl.rb, line 42
def on_dry_run_error(&proc)
  Hooks.register_on_dry_run_error(proc)
end
worker_health_check(&proc) click to toggle source
# File lib/parallel_cucumber/dsl.rb, line 26
def worker_health_check(&proc)
  Hooks.register_worker_health_check(proc)
end