Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit 08eff07

Browse files
committed
Update CHANGELOG for v6.1.2
1 parent 1a8d553 commit 08eff07

3 files changed

Lines changed: 101 additions & 98 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/main/CHAN
1919

2020
### Fixed
2121

22+
## [6.1.2] (2021-01-01)
23+
2224
## [6.1.1] (2020-11-19)
2325

2426
## [5.1.3] (2020-05-28)
@@ -147,7 +149,8 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/main/CHAN
147149
- Migrate to cucumber jvm 3.0.2 [\#6](https://github.com/cucumber/cucumber-jvm-groovy/pull/6) ([glib-briia](https://github.com/glib-briia))
148150

149151
<!-- Releases -->
150-
[Unreleased]: https://github.com/cucumber/cucumber-jvm-scala/compare/v6.1.1...main
152+
[Unreleased]: https://github.com/cucumber/cucumber-jvm-scala/compare/v6.1.2...main
153+
[5.7.1]: https://github.com/cucumber/cucumber-jvm-groovy/compare/v6.1.1...v6.1.2
151154
[5.7.1]: https://github.com/cucumber/cucumber-jvm-groovy/compare/v5.1.3...v6.1.1
152155
[5.7.1]: https://github.com/cucumber/cucumber-jvm-groovy/compare/v4.7.1...v5.1.3
153156
[5.7.1]: https://github.com/cucumber/cucumber-jvm-groovy/compare/v4.7.0...v4.7.1

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
## Maven Dependency
2-
3-
[![Maven Central](https://img.shields.io/maven-central/v/io.cucumber/cucumber-groovy.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.cucumber%22%20AND%20a:%22cucumber-groovy%22)
4-
[![Build Status](https://travis-ci.org/cucumber/cucumber-jvm-groovy.svg?branch=main)](https://travis-ci.org/cucumber/cucumber-jvm-groovy)
5-
6-
Cucumber Groovy is the Groovy implementation of [Cucumber](https://cucumber.io/).
7-
8-
## Help & Support
9-
10-
See: https://cucumber.io/support
11-
12-
## Getting started
13-
14-
- [Installation](./docs/install.md)
15-
- Documentation
16-
- [Basic usage](docs/usage.md)
17-
- [Step Definitions](docs/step_definitions.md)
18-
- [DataTables](docs/datatables.md)
19-
- [Hooks](docs/hooks.md)
20-
- [Transformers](docs/transformers.md)
21-
- [World](docs/world.md)
22-
- [Example project](examples/README.md)
23-
- [Reference documentation for Java](https://docs.cucumber.io/docs/cucumber/)
24-
- [Changelog](CHANGELOG.md)
25-
26-
## They are using it
27-
28-
You are using Cucumber Groovy? We would love to know about you! Please open a PR to add your project or company to the list below.
1+
## Maven Dependency
2+
3+
[![Maven Central](https://img.shields.io/maven-central/v/io.cucumber/cucumber-groovy.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.cucumber%22%20AND%20a:%22cucumber-groovy%22)
4+
[![Build Status](https://travis-ci.org/cucumber/cucumber-jvm-groovy.svg?branch=main)](https://travis-ci.org/cucumber/cucumber-jvm-groovy)
5+
6+
Cucumber Groovy is the Groovy implementation of [Cucumber](https://cucumber.io/).
7+
8+
## Help & Support
9+
10+
See: https://cucumber.io/support
11+
12+
## Getting started
13+
14+
- [Installation](./docs/install.md)
15+
- Documentation
16+
- [Basic usage](docs/usage.md)
17+
- [Step Definitions](docs/step_definitions.md)
18+
- [DataTables](docs/datatables.md)
19+
- [Hooks](docs/hooks.md)
20+
- [Transformers](docs/transformers.md)
21+
- [World](docs/world.md)
22+
- [Example project](examples/README.md)
23+
- [Reference documentation for Java](https://docs.cucumber.io/docs/cucumber/)
24+
- [Changelog](CHANGELOG.md)
25+
26+
## They are using it
27+
28+
You are using Cucumber Groovy? We would love to know about you! Please open a PR to add your project or company to the list below.
Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
package calc
2-
3-
import io.cucumber.groovy.EN
4-
import io.cucumber.groovy.Hooks
5-
6-
// Add functions to register hooks and steps to this script.
7-
this.metaClass.mixin(Hooks)
8-
this.metaClass.mixin(EN)
9-
10-
// Define a world that represents the test environment.
11-
// Hooks can set up and tear down the environment and steps
12-
// can change its state, e.g. store values used by later steps.
13-
class CustomWorld {
14-
def result
15-
16-
String customMethod() {
17-
"foo"
18-
}
19-
}
20-
21-
// Create a fresh new world object as the test environment for each scenario.
22-
// Hooks and steps will belong to this object so can access its properties
23-
// and methods directly.
24-
World {
25-
new CustomWorld()
26-
}
27-
28-
// This closure gets run before each scenario
29-
// and has direct access to the new world object
30-
// but can also make use of script variables.
31-
Before() {
32-
assert "foo" == customMethod()
33-
calc = new Calculator() // belongs to this script
34-
}
35-
36-
// Register another that also gets run before each scenario tagged with @notused.
37-
Before("@notused") {
38-
throw new RuntimeException("Never happens")
39-
}
40-
41-
// Register another that also gets run before each scenario tagged with
42-
// (@notused or @important) and @alsonotused.
43-
Before("(@notused or @important) and @alsonotused") {
44-
throw new RuntimeException("Never happens")
45-
}
46-
47-
// Register step definition using Groovy syntax for regex patterns.
48-
// If you use slashes to quote your regexes, you don't have to escape backslashes.
49-
// Any Given/When/Then function can be used, the name is just to indicate the kind of step.
50-
Given(~/^I have entered (\d+) into .* calculator$/) { int number ->
51-
calc.push number
52-
}
53-
54-
// Remember to still include "->" if there are no parameters.
55-
Given(~/\d+ into the/) {->
56-
throw new RuntimeException("should never get here since we're running with --guess")
57-
}
58-
59-
// This step calls a Calculator function specified in the step
60-
// and saves the result in the current world object.
61-
When(~/^I press (\w+)$/) { String opname ->
62-
result = calc."$opname"()
63-
}
64-
65-
// Use the world object to get any result from a previous step.
66-
// The expected value in the step is converted to the required type.
67-
Then(/the stored result should be {}/) { double expected ->
68-
assert expected == result
69-
}
1+
package calc
2+
3+
import io.cucumber.groovy.EN
4+
import io.cucumber.groovy.Hooks
5+
6+
// Add functions to register hooks and steps to this script.
7+
this.metaClass.mixin(Hooks)
8+
this.metaClass.mixin(EN)
9+
10+
// Define a world that represents the test environment.
11+
// Hooks can set up and tear down the environment and steps
12+
// can change its state, e.g. store values used by later steps.
13+
class CustomWorld {
14+
def result
15+
16+
String customMethod() {
17+
"foo"
18+
}
19+
}
20+
21+
// Create a fresh new world object as the test environment for each scenario.
22+
// Hooks and steps will belong to this object so can access its properties
23+
// and methods directly.
24+
World {
25+
new CustomWorld()
26+
}
27+
28+
// This closure gets run before each scenario
29+
// and has direct access to the new world object
30+
// but can also make use of script variables.
31+
Before() {
32+
assert "foo" == customMethod()
33+
calc = new Calculator() // belongs to this script
34+
}
35+
36+
// Register another that also gets run before each scenario tagged with @notused.
37+
Before("@notused") {
38+
throw new RuntimeException("Never happens")
39+
}
40+
41+
// Register another that also gets run before each scenario tagged with
42+
// (@notused or @important) and @alsonotused.
43+
Before("(@notused or @important) and @alsonotused") {
44+
throw new RuntimeException("Never happens")
45+
}
46+
47+
// Register step definition using Groovy syntax for regex patterns.
48+
// If you use slashes to quote your regexes, you don't have to escape backslashes.
49+
// Any Given/When/Then function can be used, the name is just to indicate the kind of step.
50+
Given(~/^I have entered (\d+) into .* calculator$/) { int number ->
51+
calc.push number
52+
}
53+
54+
// Remember to still include "->" if there are no parameters.
55+
Given(~/\d+ into the/) {->
56+
throw new RuntimeException("should never get here since we're running with --guess")
57+
}
58+
59+
// This step calls a Calculator function specified in the step
60+
// and saves the result in the current world object.
61+
When(~/^I press (\w+)$/) { String opname ->
62+
result = calc."$opname"()
63+
}
64+
65+
// Use the world object to get any result from a previous step.
66+
// The expected value in the step is converted to the required type.
67+
Then(/the stored result should be {}/) { double expected ->
68+
assert expected == result
69+
}

0 commit comments

Comments
 (0)