Cucumber 观点在步骤中有多重要?
我想知道,在描述一个非人类代理时,黄瓜步骤是否比第一人称更好地为读者服务。我觉得代词越少,谁在做什么就越清楚Cucumber 观点在步骤中有多重要?,cucumber,Cucumber,我想知道,在描述一个非人类代理时,黄瓜步骤是否比第一人称更好地为读者服务。我觉得代词越少,谁在做什么就越清楚 Scenario: Monitor notifies admin for healthcheck failure. Given I am a monitor When I retrieve a failed healthcheck message Then I notifies the admin Scenario: Monitor notifies admin for h
Scenario: Monitor notifies admin for healthcheck failure.
Given I am a monitor
When I retrieve a failed healthcheck message
Then I notifies the admin
Scenario: Monitor notifies admin for healthcheck failure.
Given there is a monitor
When the monitor retrieves a failed healthcheck message
Then the monitor notifies the admin
这根本没什么区别=p
Scenario: Monitor notifies admin of healthcheck failure.
Given I am a monitor
When I retrieve a failed healthcheck message
Then I should notify an admin
Scenario: Monitor notifies admin for healthcheck failure.
Given there is a monitor
When it retrieves a failed healthcheck message
Then it should notify an admin
这就是你喜欢的写作方式=p