Skip to content

cucumber

2.2.0Package record

Behavior-Driven Development for R

0packages dependsuggested by 2
4.5Kdownloads / year
96.8%test coverage
13/13flavors OK

Overview

About

Write executable specifications in a natural language that describes how your code should behave. Write specifications in feature files using 'Gherkin' language and execute them using functions implemented in R. Use them as an extension to your 'testthat' tests to provide a high level description of how your code works.

Changes in 2.2.0
  • ✨ Added support for tags and tag expressions. Scenarios can now be tagged with @tag in feature files and filtered by passing tags to cucumber::test() or cucumber::run(). Feature-level tags are inherited by all scenarios in the feature.
  • ✨ Added pending() function to mark steps as pending. A pending step will cause the scenario to be reported as skipped rather than failed. This is useful when writing the feature files before implementing the steps.
  • ✨ Added step-level reporters. CucumberReporter is a base class (extending testthat::Reporter) with start_feature()/end_feature()/start_step()/end_step() hooks, and CucumberProgressReporter prints each step as it runs with its real Given/When/Then keyword. Pass one via the reporter argument to cucumber::test() or cucumber::run().
  • ✨ Missing step definitions now report a ready-to-paste snippet (with {int}/{string} placeholders inferred from the step text) instead of just an error.
  • 🐛 Feature file normalisation now preserves the original Given/When/Then keyword (resolving And/But/* to the preceding one) instead of collapsing every step to a generic keyword.
  • 🐛 Doc String content is now dedented relative to its opening delimiter, as the Gherkin specification requires. Previously a Doc String whose """ was indented less than the surrounding nesting lost the indentation of its own lines. #16

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.2.0
READMEYes · 703 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 2.2.0Citation fileNo
Help pages
10 (2 internal)
Examples that run
43%3 run in a plain check · 4 never run
Exported functions with examples
88%
Documented parameters
100%
Return-value docs
38%
Help pages citing references
0%

Downloads

4.5K
CRAN downloads in the past year
Rank #5,225 · ~12/day · ~371/mo
Daily download trend is not available in this view yet.
81130 days
1.6K90 days
4.5K1 year
Compare downloads with other packages →
Also on423 r2u9 autocran

Repository

32Stars
1Forks
0Open issues
0Open PRs
13Releases
219Commits
1Commit identities
acceptance-testingbehavior-driven-developmentrtestingcucumberspecification
219 commits · Last activity 2026-10-02 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
11
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-20 · 262026-08-28 · 32
PracticesBeta

13 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/jakubsob/cucumber on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Funding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-05 · The repository has a site deploy workflow

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

Installing cucumber adds 37 packages (20 with compiled code, 22 MB of source tarballs). Heaviest: stringi 11 MB, fs 1.4 MB, jsonlite 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0.0 (2024)
Releases (13)

Pick two releases to compare their code metrics.

Show 1 earlier eventHide 1 earlier event
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-03-14
Total releases
13 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
117 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cucumber")
Sobolewski, J. (2026). cucumber: Behavior-Driven Development for R (Version 2.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.cucumber

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cucumber version 2.2.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy