Manage Test Run with Cucumberish
Running Cucumberish features with API uses the same parameters as XCUITest and Espresso with few behavioral differences as follows:
- Cucumberish scenario is analogous to Test and Cucumberish feature is analogous to suite.
- You can use includeTests parameter to run specify Tags to be included (analogous to includeTags in Cucumberish)
-
Please note not to change the default Cucumberish framework configurations, especially not featureNamesPrefix and pretty*NamesAllowed since it's not supported.
-
In order that specified tags in includeTests work as expected, make sure to pass nil to both excludeTags an includeTags in your test app code, i.e. Cucumberish.executeFeatures(inDirectory: "Features", from: bundle, includeTags: nil, excludeTags: nil)
-
Cucumberish framework translate features to TestClass and scenarios to tests please follow the following to resolve without having to run the tests:
Feature: removes all non-alphanumeric characters and then capitalize words from the second position then adds "CCI" prefix, for example, feature: "amazing feature_2" → "CCIamazingFeature2"
Scenario: removes all non-alphanumeric characters and then capitalize words from the second position and lowercase the first word, for example: "Good Scenario_2"→ "goodScenario2"