Search code examples
rubycucumber

what order do cucumber tests get run


I know cucumber runs each test in a feature file from top down, but my question is, in what order do feature files get run? It doesn't seem to be alphabetically, or in any structure order.


Solution

  • According to Justin Ko's website, order of execution is determined as follows:

    1. Alphabetically by feature file directory
    2. Alphabetically by feature file name
    3. Order of scenarios within the feature file

    Note: the file name sorting is case-sensitive, so uppercase A is executed before a.