我有以下问题。我有以下功能文件:黄瓜一步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']
}
我真的不知道我在做什么错在那里。预先感谢您的任何建议!