Base class for cucumber reporters that extends testthat::Reporter. Adds step-level and feature-level reporting hooks while maintaining full compatibility with testthat reporters.
Details
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.
Methods
- `start_feature(feature_name)`
Called before executing a feature's scenarios
- `end_feature()`
Called after all scenarios in a feature complete
- `start_step(step)`
Called before executing a step
- `end_step(step)`
Called after a step completes, with status/error/duration populated
Super class
testthat::Reporter -> CucumberReporter
Public fields
current_featureCurrent feature name being executed
current_pickleCurrent pickle (scenario) being executed
Methods
Inherited methods
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()
