.properties file and cucumber report #2179
Replies: 1 comment 1 reply
-
I think you may have misunderstood something in the architecture. As noted in Cucumber JUnit Platform Engine - Configuration Options:
When using the the JUnit Platform Suite Engine you are using:
So when Cucumber looks up properties, as provided by the JUnit Platform it will look at the following sources in order:
The JUnit Platform knows to look at Once junit-team/junit5#3345 lands it will be possible to use |
Beta Was this translation helpful? Give feedback.
-
To generate a Cucumber report with JUnit 5:
1-When I add @ConfigurationParameter(key = "cucumber.publish.enabled", value = "true"), the report is generated.
2-When I remove this annotation and add a cucumber.properties file in the src/test/resources directory with the content cucumber.publish.enabled=true, the report is not generated.
3-However, when I rename the .properties file to junit-platform.properties, the report is generated.
Questions:
1-How does JUnit 5 read the .properties file without any additional code or configuration?
2-How can the effect of renaming the file be explained, i.e., why does it recognize the file immediately when it is named junit-platform.properties?
Beta Was this translation helpful? Give feedback.
All reactions