我有一个jbehave的故事,我将一个字符串作为数据传递给参数。 例子: |line|
|hi.how ade you|
它给误差 expected hi.how are you But is :
hi
how are you
那么,如何处理这个输入的数据...因为如果我给\n这是考虑它作为数据的一部分
我在寻找可以构建更灵活场景的机制。 例如,对于在数据库中记录测试的存在,这两个非常相似的场景: Scenario Outline: Testing query with 1 attribute with these 2 record in and another 2 out of result
Given I'm connected to <db> database
When
所以这里是我的测试。 When(/^the admin user broadcasts "([^"]*)" to the notification feed$/) do |userBroadcast|
visit('/broadcasts/new.html')
fill_in('.nifty_form', with: userBroadcast)
click_butt
我开始用BDD方法编写iOS单元测试。我有一个关于guard声明并获得100%代码覆盖率的问题。 我有以下代码,该代码处理将Data转换为Customer对象。 internal final class func customer(from data: Data) -> Customer? {
do {
guard let jsonDictionary = try JSONS