Closed blahDL closed 7 years ago
See the testFeatureImport() test in https://github.com/mcasperson/IridiumApplicationTesting/blob/master/src/test/java/au/com/agic/apptesting/LiveTests.java, and the files https://mcasperson.github.io/iridium/features/parent.feature and https://mcasperson.github.io/iridium/features/child.feature.
When importing a feature file, all contents up to the first Scenario is removed.
This will be included with the next release.
I just spent a few hours tracking down why this wasn't working as expected. The reason is windows style line endings \r\n
whereas your code only works with unix style line endings \n
. After I changed the line endings it worked as expected.
Release 0.0.84 addresses the issue with Windows line endings. https://autogeneral.gitbooks.io/iridiumapplicationtesting-gettingstartedguide/content/releases.html
When importing fragments using #IMPORT: if you remove the Feature line you can then create one feature file that contains a superset of features.
e.g.