【发布时间】:2017-01-16 07:12:37
【问题描述】:
我正在为我公司的网站编写自动化测试,我现在也在为 iOS 应用编写测试。在我用 javascript 进行的 Jasmine 测试中,我使用 .forEach() 循环来创建测试模板,例如:
[one, two].forEach(function(number){
it('should print ' + number, function() {
console.log(number);
}
});
// Output:
// 'should print one' #=> one
// 'should print two' #=> two
XCTest's 中的 Swift 有什么方法可以做到这一点吗?
【问题讨论】:
标签: javascript ios swift xctest