File not found error while attempting to use text file in the sourceFeatures tag
Closed this issue · 8 comments
I am using cucable 1.9.0. I need to generate parallel runners for features specified in the text file. The files are located in src/test/resources/rerun.txt
This is my source feature tag
@src/test/resources/rerun.txt
Even If I just retain the folder alone (upto resources) , I am getting the same error.
I have not specified any include scenario tags. And the parallelizaion mode is scenarios.
ERROR:
trivago.rta.:cucable plug-in 1.9.0 parallel (generate-test-resources) on project. File src/test/resources/rerun.txt could not be found.
And my cucumber version is 2.4.0
Hello, can you provide a small sample project that demonstrates this?
@bischoffdev - Will update the details shortly
@bischoffdev
While i am getting the example project ready, I have a quick question. Will the cucable plugin work with cucumber version as 2.4.0?
The current Cucumber version is 7.12.0. 2.4.0 is five years old already. However, it should also work with this one.
Thanks for the update. I tried running your example project with 2.4.0 and it worked.
In my project I only have cucumber 2.4.0 and cucable 1.5.0
I have rectified the file not found error. Cucable is able to recognize the text file under sourceFeatures tag only when the full path upto the file name is given. It is working now
I am facing another issue now. After recognizing the text file, cucable picks up the features in it. But getting an error that it is not a feature or a directory. could it be due to the older version of cucumber and cucable?
In general I would advise using the latest Cucable version (1.9.0). It is quite hard to know what's going on in your case without a small example project.
@bischoffdev
This issue can be closed as the problem was happening due to wrong feature file directory path in the text file. Issue was resolved after including the root path for all the features in the text file.