@@ -5,6 +5,8 @@ If you are using Cucumber Scala 4.7.x and want to upgrade to 5.x, please note th
5
5
Starting from version 5.x, Cucumber Scala will try to be as close as possible to the Cucumber Java implementation while remaining Scala oriented.
6
6
This means that package names, parameters order, internal code... will be more consistent with the Java implementation.
7
7
8
+ See also the [ CHANGELOG] ( https://github.com/cucumber/cucumber-jvm/blob/master/CHANGELOG.md ) from Cucumber Core.
9
+
8
10
## Packages
9
11
10
12
All Cucumber Scala classes are now under ` io.cucumber.scala ` package instead of ` cucumber.api.scala ` .
@@ -14,7 +16,7 @@ All Cucumber Scala classes are now under `io.cucumber.scala` package instead of
14
16
The ` Before ` , ` BeforeStep ` , ` After ` and ` AfterStep ` definitions have slightly changed:
15
17
- to apply only to scenarios with some tags, the ` String* ` parameter is replaced by a single tag expression of type ` String ` .
16
18
This changes comes from Cucumber itself.
17
- - if providing both an order and a tag expression , the order is now the second parameter instead of the first.
19
+ - if providing both an _ order _ and a _ tag expression _ , the _ order _ is now the second parameter instead of the first.
18
20
This is more consistent with the Java implementation.
19
21
20
22
For instance, the following code:
@@ -33,4 +35,19 @@ Before("@tag1 or @tag2", 1) { _ =>
33
35
}
34
36
```
35
37
36
- See also the [ Hooks documentation] ( hooks.md ) .
38
+ ### Other changes
39
+
40
+ As a side effect the following usage no longer compiles:
41
+ ``` scala
42
+ Before () { _ =>
43
+ // Do something
44
+ }
45
+ ```
46
+ It can be replaced with:
47
+ ``` scala
48
+ Before { _ =>
49
+ // Do something
50
+ }
51
+ ```
52
+
53
+ See also the [ Hooks documentation] ( hooks.md ) .
0 commit comments