R/pending.R

Defines functions pending

Documented in pending

#' Mark a step as pending
#'
#' Call `pending()` inside a step implementation to signal that the step is not
#' yet implemented. The scenario will be reported as skipped rather
#' than failed.
#'
#' This is useful when you want to write your feature files first and implement the steps later,
#' or when you want to temporarily disable a step without deleting its implementation.
#'
#' @param message A message explaining why the step is pending.
#'
#' @examples
#' given("I have {int} cucumbers in my basket", function(n, context) {
#'   pending("not yet implemented")
#' })
#'
#' @export
pending <- function(message = "TODO") {
  testthat::skip(message)
}

Try the cucumber package in your browser

Any scripts or data that you put into this service are public.

cucumber documentation built on Oct. 5, 2026, 9:07 a.m.