And features situated under src/test/resources/features, execution causes the following exception:
java.lang.NullPointerException: Cannot invoke "String.split(String)" because the return value of "java.net.URI.getPath()" is null
at courgette.runtime.CourgetteReportOptions.getFeatureId(CourgetteReportOptions.java:54)
at courgette.runtime.CourgetteReportOptions.createFeatureIdWithLine(CourgetteReportOptions.java:60)
at courgette.runtime.CourgetteReportOptions.<init>(CourgetteReportOptions.java:19)
at courgette.runtime.CourgetteRunnerInfo.<init>(CourgetteRunnerInfo.java:30)
at courgette.api.junit.Courgette.lambda$new$0(Courgette.java:39)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at courgette.api.junit.Courgette.<init>(Courgette.java:39)
...
The reason behind is that feature.getUri().getPath() returns null in case of using classpath:features as value for features. Debugging shows that the value of getUri() is classpath:features/MyFeature.feature
Java version is 21, courgette-jvm version is 6.16.0. Thank you.
Having this:
And features situated under
src/test/resources/features
, execution causes the following exception:Offending method is below:
The reason behind is that
feature.getUri().getPath()
returnsnull
in case of usingclasspath:features
as value forfeatures
. Debugging shows that the value ofgetUri()
isclasspath:features/MyFeature.feature
Java version is 21, courgette-jvm version is 6.16.0. Thank you.