Is there a way to run cucumber feature file in java without using the cucumber API annotations?
I need to modify the feature file in my code before running it.
Is there a way to run cucumber feature file in java without using the cucumber API annotations?
I need to modify the feature file in my code before running it.
There is no support from Cucumber for solving the use case you describe.
It sounds to me that you would like to take some time to think about what you are using the features for. Are you using them as a mean of communication and discussion about the system you are working on? Or are you using them as a way to automate testing?
If you are using them for communication, I have a hard time to understand your use case.
If you are using them for scripting automated tests, then I can understand that there might be a need for manipulating them. But if that is your case, I would consider moving to a test framework rather than breaking your back trying to use Cucumber for something it isn't meant to be used for.