Estou começando os estudo de BDD com Cucumber e Eclipse.
Na execução do meu primeiro testcase , o Gerkhin está retornando a seguinte msg::
Exception in thread "main" io.cucumber.core.gherkin.FeatureParserException: Failed to parse resource at: file:///C:/Desenvolvimento/Projetos/Workspace/Eclipse%20-%20Workspace/CursoCucumber/src/main/java/aprender.cucumber.feature
(10:1): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ExamplesLine, #ScenarioLine, #RuleLine, #Comment, #Empty, got 'Ent?o o contador ser? 15'
Alguem consegue me ajudar ?
Tem como vc postar o conteúdo do arquivo aprender.cucumber.feature pra gente ver?
Claro que sim … Aqui vai
# language: pt
Funcionalidade: Aprender Cucumber
Como um aluno
Eu quero aprender Cucumber
Para que eu possa automatizar critérios de aceitação
Cenario:
Dado que o contador é 10
Quando incrementar de 5
Então o contador será 15
Pelo que li aqui na documentação a sintaxe deveria ser algo assim:
Feature: Guess the word
# The first example has two steps
Scenario: Maker starts a game
When the Maker starts a game
Then the Maker waits for a Breaker to join
# The second example has three steps
Scenario: Breaker joins a game
Given the Maker has started a game with the word "silky"
When the Breaker joins the Maker's game
Then the Breaker must guess a word with 5 characters
FONTE: https://cucumber.io/docs/gherkin/reference/