Search code examples
rubycucumberbdd

Is there any cucumber command to get all the scenario names?


I have more than 1K scenarios in my repository, and i need to get all the scenario names and its folder path to prepare a report.

It will helpful for me, if any cucumber command to get all the scenario names and folder path.


Solution

  • I'm not aware of a cucumber command, but a simple shell search seemed to yield good results for me.

    grep -r 'Feature' path-to-directory
    ./features/a_feature.feature:Feature: This is the first feature returned.