Skip to content

Commit 83ce8a3

Browse files
committed
🏗️ build: upgrade Scala 3 version
1 parent 250eab8 commit 83ce8a3

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/master/CH
1414
### Changed
1515

1616
- [Core] Update `cucumber-core` dependency to [7.28.0](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md)
17-
- Upgrade Scala versions to 2.12.20
17+
- Upgrade Scala versions to 2.12.20 and 3.3.6
1818

1919
### Deprecated
2020

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ThisBuild / homepage := Some(
3434

3535
val scala212 = "2.12.20"
3636
val scala213 = "2.13.16"
37-
val scala3 = "3.3.1"
37+
val scala3 = "3.3.6"
3838

3939
scalaVersion := scala213
4040

cucumber-scala/src/test/scala-2/io/cucumber/scala/ScalaDslStepsTest.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ScalaDslStepsTest {
119119
classOf[IncorrectStepDefinitionException],
120120
"io.cucumber.scala.ScalaDslStepsTest",
121121
"ScalaDslStepsTest.scala",
122-
323,
122+
326,
123123
Array(null)
124124
)
125125
}
@@ -226,7 +226,7 @@ class ScalaDslStepsTest {
226226
classOf[IncorrectStepDefinitionException],
227227
"io.cucumber.scala.ScalaDslStepsTest",
228228
"ScalaDslStepsTest.scala",
229-
323,
229+
326,
230230
Array(null)
231231
)
232232
}
@@ -271,7 +271,10 @@ class ScalaDslStepsTest {
271271
check: => Boolean
272272
): Unit = {
273273
assertEquals(pattern, stepDefinition.getPattern)
274-
assertTrue(stepDefinition.getLocation.contains(location))
274+
assertTrue(
275+
stepDefinition.getLocation.contains(location),
276+
s"Expected location '${stepDefinition.getLocation}' to contain '$location'"
277+
)
275278
stepDefinition.execute(args)
276279
assertTrue(check)
277280
}

cucumber-scala/src/test/scala-3/io/cucumber/scala/ScalaDslStepsTest.scala

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ScalaDslStepsTest {
4949
assertClassStepDefinition(
5050
glue.registry.stepDefinitions.head,
5151
"Something",
52-
"ScalaDslStepsTest.scala:43",
52+
"ScalaDslStepsTest.scala:42",
5353
Array(),
5454
invoked
5555
)
@@ -119,7 +119,7 @@ class ScalaDslStepsTest {
119119
classOf[IncorrectStepDefinitionException],
120120
"io.cucumber.scala.ScalaDslStepsTest",
121121
"ScalaDslStepsTest.scala",
122-
323,
122+
326,
123123
Array(null)
124124
)
125125
}
@@ -162,7 +162,7 @@ class ScalaDslStepsTest {
162162
assertObjectStepDefinition(
163163
Glue.registry.stepDefinitions.head,
164164
"Something",
165-
"ScalaDslStepsTest.scala:158",
165+
"ScalaDslStepsTest.scala:157",
166166
Array(),
167167
invoked
168168
)
@@ -226,7 +226,7 @@ class ScalaDslStepsTest {
226226
classOf[IncorrectStepDefinitionException],
227227
"io.cucumber.scala.ScalaDslStepsTest",
228228
"ScalaDslStepsTest.scala",
229-
323,
229+
326,
230230
Array(null)
231231
)
232232
}
@@ -271,7 +271,10 @@ class ScalaDslStepsTest {
271271
check: => Boolean
272272
): Unit = {
273273
assertEquals(pattern, stepDefinition.getPattern)
274-
assertTrue(stepDefinition.getLocation.contains(location))
274+
assertTrue(
275+
stepDefinition.getLocation.contains(location),
276+
s"Expected location '${stepDefinition.getLocation}' to contain '$location'"
277+
)
275278
stepDefinition.execute(args)
276279
assertTrue(check)
277280
}

0 commit comments

Comments
 (0)