You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The precompiler would sort the elements of the feature files by a selected tag(s).
Use cases
If switching between different groups of scenarios require extra steps, a customizable sorter could group similar scenarios so less switch would be needed.
For example, if switching between admin and standard user scenarios needs logout-login to actually switch the user, we could group all admin scenarios in one group and all standard user scenarios into another, thus only a single logout-login should be applied.
Example
Take the following (example) feature file:
# src/simple.featureFeature: Simple feature@user(admin)Scenario: Admin cases 1Given the XY page is opened with an admin user
When I select an entity
Then Option to delete the entity should be visible
@user(standard)Scenario: Standard user cases 1Given the XY page is opened with a standard user #First Logout-loginWhen I select an entity
Then Option to delete the entity should not be visible
@user(admin)Scenario: Admin cases 2Given the YX page is opened #Second Logout-loginWhen I click on the Settings icon
Then admin view should be visible
@user(standard)Scenario: Standard user cases 2Given the YX page is opened #Third Logout-loginWhen I click on the Settings icon
Then simple view should be visible
Running the precompiled sorted based on @user tag would result in the following feature file:
# dist/simple.featureFeature: Simple feature@sort(admin)Scenario: Admin cases 1Given the XY page is opened with an admin user
When I select an entity
Then Option to delete the entity should be visible
@user(admin)Scenario: Admin cases 2Given the YX page is opened
When I click on the Settings icon
Then admin view should be visible
@user(standard)Scenario: Standard user cases 1Given the XY page is opened with a standard user #Logout-login only occurs hereWhen I select an entity
Then Option to delete the entity should not be visible
@user(standard)Scenario: Standard user cases 2Given the YX page is opened
When I click on the Settings icon
Then simple view should be visible
Options/Variants
Sort ascending/descending
Being able to sort based on multiple tags. E.g. We could configure it to sort scenarios primarily based on @user(xy) tags, and in case two scenarios have identical user tags, we could further sort them based on @otherTag(yz)
Additional context
The text was updated successfully, but these errors were encountered:
Summary
The precompiler would sort the elements of the feature files by a selected tag(s).
Use cases
If switching between different groups of scenarios require extra steps, a customizable sorter could group similar scenarios so less switch would be needed.
For example, if switching between admin and standard user scenarios needs logout-login to actually switch the user, we could group all admin scenarios in one group and all standard user scenarios into another, thus only a single logout-login should be applied.
Example
Take the following (example) feature file:
Running the precompiled sorted based on @user tag would result in the following feature file:
Options/Variants
Additional context
The text was updated successfully, but these errors were encountered: