New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to run a subset of feature files by passing a comma separated file list #3366
Comments
So, are you saying that And that you need something analogous to that for use with the From the documentation for the
Does that mean you would like to see a |
I wasn't aware of the console option, I will check it out.
That would be a start. Going a little bit further I would expect it to accept all of the formats that cucumber can produce as a result of a |
@janpetryk have you considered using the JUnit Launcher API to rerun test programmatically? This would not require the use of the rerun plugin. See Cucumber JUnit Platform Engine - Rerunning Failed Scenarios @sbrannen I think there are two needs that could be addressed here
|
If you would like us to be able to process this issue, please provide the requested information. If the information is not provided within the next 3 weeks, we will be unable to proceed and this issue will be closed. |
Team decision: Create separate issues for:
|
Among the many ways of selecting which features should be included (
@SelectDirectories
,@SelectClasspathResource
,@SelectFile
etc.) JUnit5 is missing a possibility to pass a comma separated feature file list that would allow to pass the list of the scenarios to be passed as a variable.This should work similarly to a
cucumber.features
parameter present in Cucumber API where it accepts a coma separated list of paths (path/to/example.feature, path/to/other.feature
), class path resources (classpath:features/example.feature, classpath:features/other.feature
) or even a list of specific scenarios with lines where they start (classpath:features/example.feature:5, classpath:features/other.feature:57
)End goal of that would be to be able to pass the list of features as an command line argument:
./gradlew cucumberTest -Djunit.cucumber.files="classpath:features/example.feature, classpath:features/other.feature"
that would run only those two features.Use cases:
rerun
cucumber plugin produces a file with a list of failed scenarios in a format ofBackground
There is a
@ConfigurationParameter
annotation and it is possible to setcucumber.features
with JUnit5 and gradle this way but JUnit5 does not play nicely whencucumber.features
is combined with@ExcludeTags
and@IncludeTags
. Skipping directory selectors also results in bugs.@SelectFiles
is not an answer as it doesn't allow passing a list of files as a command line argument.To properly run a dynamically calculated subset of tests combined with tag selector there should be a new file selector allowing a comma separated list of values.
The text was updated successfully, but these errors were encountered: