【发布时间】:2015-01-20 12:38:52
【问题描述】:
我们正在尝试按照规范以小黄瓜语言的示例方法来表达我们的要求。功能的一部分是检查在某些情况下会失败,否则应该是肯定的。所以我们有很多这样的场景:
Given a <condition> //condition changes between scenario
When the check is performed
Then the result is negative
因此,在描述了检查可能失败的所有条件之后,我们需要一个积极的场景,例如:
Given ... // this is what we're missing.
When the check is performed
Then the result is positive
我们想不出一个好的方法来制定这个。 请注意,这是可以由不同产品扩展的通用功能的一部分,因此我们不能只写:“上述条件均不适用”
你们中的任何人能想出一个类似于Given there are no conflicting conditions 的表述,但更可测试吗?
【问题讨论】:
标签: bdd acceptance-testing gherkin specifications scenarios