What are cucumber plugins?
- While executing cucumber scenarios there some missing step definitions.
- We can print code snippets for missed step definitions by using the summary plugin.
Demo on cucumber plugin - summary:
Let's say I have a scenario without implemented step definitions.
@smoke
Scenario: This is Smoke Scenario
Given I am in First step with step def implementation
And I am in Second step without step def implementation
Here, Given step is implemented with step definition and And step is not implemented with step definition.
Run the above scenario from Runner class:
cucumber plugin |
Here,
- the summary plugin will print code snippets
- snippets will have 2 values:
- CAMLECASE - Will print code snippets in camelcase format
- UNDERSCORE - It' is the default value and it will print code snippets in UNDERSCORE format.
cucumber plugin summary underscore |
Please comment below to feedback or ask questions.
No comments:
Post a Comment
Please comment below to feedback or ask questions.