Skip to content

Commit 94f5a19

Browse files
authored
[Archetype] Set glue path by default (#2975)
1 parent 51b9023 commit 94f5a19

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1111

1212
## [Unreleased]
13+
### Fixed
14+
- [Archetype] Set glue path by default ([#2975](https://github.com/cucumber/cucumber-jvm/pull/2975) M.P. Korstanje)
1315

1416
## [7.21.0] - 2025-02-02
1517
### Added

cucumber-archetype/src/main/resources/archetype-resources/src/test/java/RunCucumberTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
import org.junit.platform.suite.api.SelectPackages;
66
import org.junit.platform.suite.api.Suite;
77

8+
import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME;
89
import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME;
910

1011
@Suite
1112
@IncludeEngines("cucumber")
1213
@SelectPackages("${package}")
1314
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
15+
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "${package}")
1416
public class RunCucumberTest {
1517
}

cucumber-archetype/src/test/resources/projects/should-generate-project/reference/src/test/java/com/example/RunCucumberTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
import org.junit.platform.suite.api.SelectPackages;
66
import org.junit.platform.suite.api.Suite;
77

8+
import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME;
89
import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME;
910

1011
@Suite
1112
@IncludeEngines("cucumber")
1213
@SelectPackages("com.example")
1314
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
15+
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "com.example")
1416
public class RunCucumberTest {
1517
}

0 commit comments

Comments
 (0)