README.md in cucumber-9.0.1 vs README.md in cucumber-9.0.2
- old
+ new
@@ -1,8 +1,6 @@
-<p align="center">
- <img src="./.github/img/cucumber-open-logo.png" alt="Cucumber Open - Supported by Smartbear" width="428" />
-</p>
+<img src="docs/img/cucumber-open-logo.png" alt="Cucumber Open - Supported by Smartbear" width="428" />
# Cucumber
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://vshymanskyy.github.io/StandWithUkraine)
[![OpenCollective](https://opencollective.com/cucumber/backers/badge.svg)](https://opencollective.com/cucumber)
@@ -16,13 +14,11 @@
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.
-<p align="center">
- <img src="./.github/img/gherkin-example.png" alt="Cucumber Gherkin Example" width="728" />
-</p>
+<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.).
@@ -54,12 +50,11 @@
- Ruby 3.2
- Ruby 3.1
- Ruby 3.0
- Ruby 2.7
- TruffleRuby 22.0.0+
-- JRuby (with [some limitations](https://github.com/cucumber/cucumber-ruby/blob/main/docs/jruby-limitations.md))
- - 9.4
+- JRuby 9.4+ (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.
@@ -107,23 +102,24 @@
And a file named `steps.rb` in `features/step_definitions` with:
```ruby
# features/step_definitions/steps.rb
-Given("this will pass") do
+Given('this will pass') do
@this_will_pass = true
end
-Given("this will fail") do
+Given('this will fail') do
@this_will_pass = false
end
-When("I do an action") do
+When('I do an action') do
+ :no_op
end
Then("some results should be there") do
- expect(@this_will_pass)
+ expect(@this_will_pass).to be true
end
```
### Run Cucumber
@@ -133,10 +129,10 @@
$ bundle exec cucumber features/rule.feature
To execute a single example, indicates the line of the name of the example:
- $ bundle exec cucumber features/rule.feature:7
+ $ bundle exec cucumber features/rule.feature:5
To summarize the results on the standard output, and writte a HTML report on disk:
$ bundle exec cucumber --format summary --format html --out report.html