| CucumberReporter | R Documentation |
Base class for cucumber reporters that extends testthat::Reporter. Adds step-level and feature-level reporting hooks while maintaining full compatibility with testthat reporters.
CucumberReporter extends testthat's Reporter class to add: - Feature-level hooks: 'start_feature()', 'end_feature()' - Step-level hooks: 'start_step()', 'end_step()'
These additional hooks are called during cucumber test execution to provide visibility into individual step execution. Standard testthat reporters will continue to work unchanged, reporting only at the scenario (test) level.
Called before executing a feature's scenarios
Called after all scenarios in a feature complete
Called before executing a step
Called after a step completes, with status/error/duration populated
testthat::Reporter -> CucumberReporter
current_featureCurrent feature name being executed
current_pickleCurrent pickle (scenario) being executed
testthat::Reporter$.start_context()testthat::Reporter$add_result()testthat::Reporter$cat_line()testthat::Reporter$cat_tight()testthat::Reporter$end_context()testthat::Reporter$end_context_if_started()testthat::Reporter$end_file()testthat::Reporter$end_reporter()testthat::Reporter$end_test()testthat::Reporter$initialize()testthat::Reporter$is_full()testthat::Reporter$local_user_output()testthat::Reporter$rule()testthat::Reporter$start_context()testthat::Reporter$start_file()testthat::Reporter$start_reporter()testthat::Reporter$start_test()testthat::Reporter$update()start_feature()Start a feature
CucumberReporter$start_feature(feature_name)
feature_nameName of the feature
end_feature()End the current feature
CucumberReporter$end_feature()
start_step()Start a step
CucumberReporter$start_step(step)
stepPickle step object
end_step()End a step (called after execution with status/error/duration populated)
CucumberReporter$end_step(step)
stepPickle step object with execution results
clone()The objects of this class are cloneable with this method.
CucumberReporter$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.