class Cucumber::Formatter::Json
def on_test_step_started(event)
def on_test_step_started(event) test_step = event.test_step return if internal_hook?(test_step) if @element_hash.nil? @element_hash = create_element_hash(test_step) feature_elements << @element_hash end if test_step.hook? @step_or_hook_hash = {} hooks_of_type(test_step) << @step_or_hook_hash return end if first_step_after_background?(test_step) @in_background = false feature_elements << @test_case_hash @element_hash = @test_case_hash end @step_or_hook_hash = create_step_hash(test_step) steps << @step_or_hook_hash @step_hash = @step_or_hook_hash end