[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7730":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},7730,"cucumber-ruby","cucumber\u002Fcucumber-ruby","cucumber","Cucumber for Ruby. It's amazing!","https:\u002F\u002Fcucumber.io",null,"Ruby",5210,1118,222,22,0,1,40.15,"MIT License",false,"main",[7,23,24,25],"polyglot-release","ruby","tidelift","2026-06-12 02:01:43","\u003Cimg src=\"docs\u002Fimg\u002Flogo.svg\" alt=\"\" width=\"75\" \u002F>\n\n# Cucumber\n\n[![Stand With Ukraine](https:\u002F\u002Fraw.githubusercontent.com\u002Fvshymanskyy\u002FStandWithUkraine\u002Fmain\u002Fbadges\u002FStandWithUkraine.svg)](https:\u002F\u002Fvshymanskyy.github.io\u002FStandWithUkraine)\n[![OpenCollective](https:\u002F\u002Fopencollective.com\u002Fcucumber\u002Fbackers\u002Fbadge.svg)](https:\u002F\u002Fopencollective.com\u002Fcucumber)\n[![OpenCollective](https:\u002F\u002Fopencollective.com\u002Fcucumber\u002Fsponsors\u002Fbadge.svg)](https:\u002F\u002Fopencollective.com\u002Fcucumber)\n[![Test cucumber](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-ruby\u002Factions\u002Fworkflows\u002Ftest.yaml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-ruby\u002Factions\u002Fworkflows\u002Ftest.yaml)\n[![Code Climate](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fcucumber\u002Fcucumber-ruby.svg)](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fcucumber\u002Fcucumber-ruby)\n[![Coverage Status](https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fcucumber\u002Fcucumber-ruby\u002Fbadge.svg?branch=main)](https:\u002F\u002Fcoveralls.io\u002Fr\u002Fcucumber\u002Fcucumber-ruby?branch=main)\n\nCucumber is a tool for running automated tests written in plain language. Because they're\nwritten in plain language, they can be read by anyone on your team. Because they can be\nread by anyone, you can use them to help improve communication, collaboration and trust on\nyour team.\n\n\u003Cimg src=\"docs\u002Fimg\u002Fgherkin-example.png\" alt=\"Cucumber Gherkin Example\" width=\"728\" \u002F>\n\nThis is the Ruby implementation of Cucumber. Cucumber is also available for [JavaScript](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-js),\n[Java](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-jvm), and a lot of other languages. You can find a list of implementations here: https:\u002F\u002Fcucumber.io\u002Fdocs\u002Finstallation\u002F.\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for info on contributing to Cucumber (issues, PRs, etc.).\n\nEveryone interacting in this codebase and issue tracker is expected to follow the\nCucumber [code of conduct](https:\u002F\u002Fcucumber.io\u002Fconduct).\n\n## Installation\n\nCucumber for Ruby is a Ruby gem. Install it as you would install any gem: add\n`cucumber` to your Gemfile:\n\n    gem 'cucumber'\n\nthen install it:\n\n    $ bundle\n\nor install the gem directly:\n\n    $ gem install cucumber\n\nLater in this document, bundler is considered being used so all commands are using\n`bundle exec`. If this is not the case for you, execute `cucumber` directly, without\n`bundle exec`.\n\n### Supported platforms\n\n- Ruby 4.0\n- Ruby 3.4\n- Ruby 3.3\n- Ruby 3.2\n- TruffleRuby 24.0.0+\n- JRuby 10.0+ (with [some limitations](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-ruby\u002Fblob\u002Fmain\u002Fdocs\u002Fjruby-limitations.md))\n\n### Ruby on Rails\n\nUsing Ruby on Rails? You can use [cucumber-rails](https:\u002F\u002Fgithub.com\u002Fcucumber\u002Fcucumber-rails) to bring Cucumber into your Rails project.\n\n## Usage\n\n### Initialization\n\nIf you need to, initialize your `features` directory with\n\n    $ bundle exec cucumber --init\n\nThis will create the following directories and files if they do not exist already:\n\n    features\n    ├── step_definitions\n    └── support\n        └── env.rb\n\n### Create your specification\n\nCreate a file named `rule.feature` in the `features` directory with:\n\n```gherkin\n# features\u002Frule.feature\n\nFeature: Rule Sample\n\n  Rule: This is a rule\n\n    Example: A passing example\n      Given this will pass\n      When I do an action\n      Then some results should be there\n\n    Example: A failing example\n      Given this will fail\n      When I do an action\n      Then some results should be there\n```\n\n### Automate your specification\n\nAnd a file named `rule_steps.rb` in `features\u002Fstep_definitions` with:\n\n```ruby\n# features\u002Fstep_definitions\u002Fsteps.rb\n\nGiven('this will pass') do\n  @this_will_pass = true\nend\n\nGiven('this will fail') do\n  @this_will_pass = false\nend\n\nWhen('I do an action') do\n  :no_op\nend\n\nThen(\"some results should be there\") do\n  expect(@this_will_pass).to be true\nend\n```\n\n### Run Cucumber\n\n    $ bundle exec cucumber\n\nTo execute a single feature file:\n\n    $ bundle exec cucumber features\u002Frule.feature\n\nTo execute a single example, indicates the line of the name of the example:\n\n    $ bundle exec cucumber features\u002Frule.feature:5\n\nTo summarize the results on the standard output, and generate a HTML report on disk:\n\n    $ bundle exec cucumber --format summary --format html --out report.html\n\nFor more command line options\n\n    $ bundle exec cucumber --help\n\nYou can also find documentation on the command line possibilities in [features\u002Fdocs\u002Fcli](features\u002Fdocs\u002Fcli).\n\n## Documentation and support\n\n- Getting started, writing features, step definitions, and more: https:\u002F\u002Fcucumber.io\u002Fdocs\n- Ruby API Documentation: http:\u002F\u002Fwww.rubydoc.info\u002Fgithub\u002Fcucumber\u002Fcucumber-ruby\u002F\n- Community support forum: https:\u002F\u002Fgithub.com\u002Forgs\u002Fcucumber\u002Fdiscussions\n- Discord: [register for an account](https:\u002F\u002Fcucumber.io\u002Fdocs\u002Fcommunity\u002Fget-in-touch#discord)\n\n## Copyright\n\nCopyright (c) Cucumber and Contributors. See LICENSE for details.\n","Cucumber for Ruby 是一个用于编写和运行自动化测试的工具，这些测试用例采用自然语言编写，便于团队成员理解。其核心功能包括支持Gherkin语言来定义测试场景，能够与多种编程语言集成，并且提供了丰富的插件生态系统。技术特点上，Cucumber-Ruby支持最新的Ruby版本及JRuby等替代实现，同时通过cucumber-rails插件简化了在Rails项目中的集成过程。适用于需要提高跨职能团队沟通效率、促进协作以及确保软件质量的各种开发场景中，尤其是敏捷开发流程里作为行为驱动开发（BDD）实践的一部分。",2,"2026-06-11 03:14:05","top_language"]