net-a-porter-mobile / XCTest-Gherkin

Gherkin syntax for XCTestCase
Apache License 2.0
254 stars 64 forks source link

Native Feature files in subdirectories #178

Closed tomleightonstars closed 3 years ago

tomleightonstars commented 3 years ago

Hi,

So I've got proper feature files in a folder called 'features'. I'm trying to add subdirectories to 'features' however the parser is attempting to open the folder as if it were a file and errors out.

Are subdirectories supported for the native feature files?

parseFeatureFile in NativeFeatureParser.swift is where the error is showing

deanWombourne commented 3 years ago

Hey - I guess if it's erroring out then no, no support for subfolders :) I'll grab this issue and take a look - shouldn't be too hard to add in (said with hope).

deanWombourne commented 3 years ago

Yep - I can trivially reproduce this, it's definitely a bug.

deanWombourne commented 3 years ago

Hi - I've released this as version 0.21.1 - let me know if that works for you :)

tomleightonstars commented 3 years ago

thank you so much @deanWombourne! It works perfectly!