I have knowledge about static feature file and it is tough to handle for test case. I want to create dynamic feature file or dynamic content for test case in feature file.
Cucumber has options called "tags", which allows you for filter scenarios and run just a subset.
Here, you have instructions on how to run Cucumber tests using Maven:
mvn test -Dcucumber.options=”–tags @tag Example”
will run only scenarios with the @Example tags.