我有以下問題。我有以下功能文件:黃瓜一步definiton未找到 - InteliJ Gradle
Feature: Serve coffee
Coffee should not be served until paid for
Coffee should not be served until the button has been pressed
If there is no coffee left then money should be refunded
Scenario: Buy last coffee
Given there are 1 coffees left in the machine
And I have deposited 1$
When I press the coffee button
Then I should be served a coffee
InteliJ亮點給定,等作爲缺少一步定義。我產生了定義,InteliJ仍然不認識它們。我使用Cucumber gradle plugin具有以下配置:
cucumber {
formats = ['pretty','json:build/cucumber.json','junit:build/cucumber.xml']
glueDirs = ['src/test/resources/step_definitions']
featureDirs = ['src/test/resources/features']
}
我真的不知道我在做什麼錯在那裏。預先感謝您的任何建議!