cuke_linter icon indicating copy to clipboard operation
cuke_linter copied to clipboard

Linter does not validate scenarios with examples

Open T00595 opened this issue 1 year ago • 3 comments

Hello, today we are having a recurring problem where it happens that sometinmes our QAs create Scenarios with examples and not Scnarios Schemes in the gherkin code, with this it generates some problems such as missing executions due to the schemes not being considered, in this case we wanted to that the linter validated if a scenario had examples it would be barred so that it clould be change to the scenario scheme.

bad example:

@#charlan_bettiol @%validar Scenario: Validar campos Dado realizar o login E clicar no mercado Quando adicionar "1" produto "teste" ao E inserir "1233" para calcular o frete E clicar em comprar E validar os "" de cadastro do endereco Então verificar se esta ok Exemplos: | campos | | nome | | tipo | | numero |

good example: @#charlan_bettiol @%validar Scenario outline: Validar campos Dado realizar o login E clicar no mercado Quando adicionar "1" produto "teste" ao E inserir "1233" para calcular o frete E clicar em comprar E validar os "" de cadastro do endereco Então verificar se esta ok Exemplos: | campos | | nome | | tipo | | numero |

T00595 avatar Mar 15 '23 13:03 T00595