我想循环一个摩卡测试套件(我想测试我的系统针对无数值与预期的结果),但我无法让它工作。例如:循环摩卡测试?
规格/ example_spec.coffee:
test_values = ["one", "two", "three"]
for value in test_values
describe "TestSuite", ->
it "does some test", ->
console.log value
true.should.be.ok
的问题是,我的控制台日志输出看起来是这样的:
three
three
three
,我想它看起来是这样的:
one
two
three
如何循环这些值为我的摩卡t EST序列?
是的,只是想出了我自己的一个la https://github.com/visionmedia/mocha/issues/420。谢谢! – neezer 2012-07-06 23:36:43