cucumber-ruby
5,214
Stars
1,115
Forks
217
Watchers
27
Open Issues
MIT
许可证
Ruby
语言
2008-04-17
创建时间
2026-11-11
最近更新
项目能做什么
面向 Ruby 语言的 Cucumber 自动化测试工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1 align="center">
<img src="docs/img/logo.svg" alt="Cucumber logo" width="75">
<br>
Cucumber
</h1>
<div align="center">
[](https://badge.fury.io/rb/cucumber)
[](https://scorecard.dev/viewer/?uri=github.com/cucumber/cucumber-ruby)
[](https://opencollective.com/cucumber)
[](https://opencollective.com/cucumber)
[](https://vshymanskyy.github.io/StandWithUkraine)
[](https://github.com/cucumber/cucumber-ruby/actions)
[](https://github.com/cucumber/cucumber-ruby/actions)
</div>
Cucumber is a tool for running automated tests written in plain language. Because they're
written in plain language, they can be read by anyone on your team. Because they can be
read by anyone, you can use them to help improve communication, collaboration and trust on
your team.
<img src="docs/img/gherkin-example.png" alt="Cucumber Gherkin Example" width="728" />
This is the Ruby implementation of Cucumber. Cucumber is also available for [JavaScript](https://github.com/cucumber/cucumber-js),
[Java](https://github.com/cucumber/cucumber-jvm), and a lot of other languages. You can find a list of implementations here: https://cucumber.io/docs/installation/.
See [CONTRIBUTING.md](CONTRIBUTING.md) for info on contributing to Cucumber (issues, PRs, etc.).
Everyone interacting in this codebase and issue tracker is expected to follow the
Cucumber [code of conduct](https://cucumber.io/conduct).
## Installation
Cucumber for Ruby is a Ruby gem. Install it as you would install any gem: add
`cucumber` to your Gemfile:
gem 'cucumber'
then install it:
$ bundle
or install the gem directly:
$ gem install cucumber
Later in this document, bundler is considered being used so all commands are using
`bundle exec`. If this is not the case for you, execute `cucumber` directly, without
`bundle exec`.
### Supported platforms
- Ruby 4.0
- Ruby 3.4
- Ruby 3.3
- Ruby 3.2
- TruffleRuby 24.0.0+
- JRuby 10.0+ (with [some limitations](https://github.com/cucumber/cucumber-ruby/blob/main/docs/jruby-limitations.md))
### Ruby on Rails
Using Ruby on Rails? You can use [cucumber-rails](https://github.com/cucumber/cucumber-rails) to bring Cucumber into your Rails project.
## Usage
### Initialization
If you need to, initialize your `features` directory with
$ bundle exec cucumber --init
This will create the following directories and files if they do not exist alread
阅读完整原文
项目深度分析 AI 生成
Cucumber 活文档与协作云平台 (Living Documentation SaaS)
| 产品构想 | 针对使用 cucumber-ruby 的团队,提供自动化解析 feature 文件并生成给业务人员查看的富文本活文档平台,支持用例执行历史跟踪与评论。 |
| 核心功能 | Git 仓库双向同步、Gherkin 规范转产品业务流程图、测试执行 HTML/JSON 报告聚合、版本差异对比、无代码在线编辑需求回写 Git。 |
| 目标用户 | 敏捷开发团队中的非技术人员(产品经理、业务需求方、合规官)。 |
| 难度/周期 | 中等 · 2-3 个月 · 成本:开发机器与轻量云服务器(约 $30-100/月)。 |
| 收费模式 | 按席位或按项目订阅制(Freemium,团队版 $10-$20/人/月)。 |
| 竞争风险 | SmartBear (Cucumber 官方商业公司) 及现存活文档工具已有市场占有;需在 UI 体验和特定工作流打出差异化。 |
| 依据 | 已验证事实 |
LLM 驱动的 Cucumber Step Definition 自动化生成与修复插件
| 产品构想 | 结合 LLM 的 IDE 插件或 CLI 辅助工具,自动读取 .feature 文件并为 Ruby 代码库生成契合上下文的 step_definitions 骨架与常见交互代码,修复断裂的 step 匹配。 |
| 核心功能 | VS Code / RubyMine 插件集成、一键根据自然语言生成 Ruby 步骤代码、历史 steps 语义检索去重、测试报错自动诊断修复建议。 |
| 目标用户 | Rails 开发者、自动化测试工程师。 |
| 难度/周期 | 低至中等 · 1-2 个月 · 成本:LLM API 调用费用(按使用量支付,初始极低)。 |
| 收费模式 | 按使用量订阅制(如每月前 100 次免费,之后 $9.9/月个人 Pro 版)。 |
| 竞争风险 | 通用编码助手(GitHub Copilot、Cursor)能力逐步侵蚀专用测试生成工具的市场空间。 |
| 依据 | AI推测 |
企业 Gherkin 规约质量与合规性扫描工具 (Linter & Governance)
| 产品构想 | 针对规范写得臃肿、反模式多(如把 Gherkin 写成底层脚本指令)的问题,提供质量检测与合规审计工具,嵌入 CI/CD 流程中控制测试规范资产质量。 |
| 核心功能 | CLI 工具与 CI/CD 动作集成、坏味道(Bad Smells)检测、步骤重复率分析、可读性评分、企业合规审计导出(如医疗/金融业务追溯)。 |
| 目标用户 | 大型组织 QA Lead、敏捷教练、企业架构师。 |
| 难度/周期 | 中等 · 1.5-3 个月 · 成本:基础域名与静态展示网站成本(约 $10/月)。 |
| 收费模式 | CLI 开源基础规则,高级规则集/企业报告面板/合规追溯按年收取企业许可证(License Key)。 |
| 竞争风险 | 开源生态内存在免费 linter 规则,需强依赖企业合规与大型团队痛点才能产生付费意愿。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2008-04-17,近 30 天仍在推送,发布过 20 个 Release |
| 社区活跃 | Star 5,214 / Fork 1,115 / Issue 27(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。