cucumber / cucumber-android

Android support for Cucumber-JVM
MIT License
135 stars 62 forks source link

Support for Loading .feature Files from Emulator Private Data Storage in cucumber-android #123

Closed neelam-kushwah closed 11 months ago

neelam-kushwah commented 12 months ago

I want to utilize .feature files from the private data storage path on my emulator. Despite using 'am instrument -e features [path.to.file]', it appears that cucumber-android expects the files to be in resources rather than the file system. I'm inquiring about the feasibility of this with the current implementation.

lsuski commented 12 months ago

Yes, current implementation expects features to be in assets. However it shouldn't be much complicated to extend this behaviour. It's probably a matter of adding another Resource implementation in AndroidFeatureSupplier

neelam-kushwah commented 11 months ago

Thanks for your response @lsuski . I have implemented the necessary changes in the AndroidFeatureSupplier for the solution. It is now working fine, and I am closing the issue accordingly.

lsuski commented 11 months ago

Do you implemented it in your fork? Can you create PR?