-
Notifications
You must be signed in to change notification settings - Fork 28
Rules list
Robert Cochran edited this page Aug 11, 2016
·
8 revisions
##Feature And Scenario
- Comment comes between tag and properly executing line. This feature file cannot run!
- {class} has no description.
- {class} has numbers in the description.
- There are commas in the description, creating possible multirunning scenarios or features.
- {class} has a commented out tag
- {class} has too many tags.
- {class} has a long description.
##Feature Only
- Feature with no scenarios.
- Feature file has no content.
- Feature has a background with no scenarios.
- Feature has a background with one scenario.
- Same tag appears on both Feature and Scenario
- Tag appears on all scenarios.
- Feature with too many scenarios.
##Background And Scenario
- Commented step.
- No steps in Scenario.
- Step that is only one word long.
- {class} with too many steps.
- Invalid first step. Began with And/But.
- Step includes a * instead of Given/When/Then/And/But.
- Given/When/Then used multiple times in the same {class}.
- Implementation word used: {word}.
- Date used.
##Background Only
- There is a background with a tag. This feature file cannot run!
##Scenario Only
- Scenario Outline with no examples.
- Scenario Outline with no examples table.
- Commented example.
- Scenario steps out of Given/When/Then order.
- Scenario Outline with only one example.
- Scenario Outline with too many examples.
##Step Definition
- Recursive nested step call.
- A nested step should not universally match all step definitions. Dead steps cannot
- No code in Step Definition.
- Too many parameters in Step Definition.
- Lazy Debugging through puts, p, or print
- Pending step definition. Implement or remove.
- Nested step call.
- Commented code in Step Definition.
- Small sleeps used. Use a wait_until like method.
- Large sleeps used. Use a wait_until like method.
- Todo found. Resolve it.
##Hook
- Around hook without 2 parameters for Scenario and Block.
- Around hook does not call its block.
- Hook without a begin/rescue. Reduced visibility when debugging.
- Hook that both expects and ignores the same tag. This hook will not function as Hook with no content.
- Hook is only comments.
- Hook has duplicate tags.
- Hook found outside of the designated hooks