如:
class MySpec extends Specification with ScalaCheck { def is = s2"""
MyThing should
do something the right way $x1
"""
def x1 = prop(4 /*times*/) { (...) =>
...
}
}
}
答案 0 :(得分:1)
使用setParameters
和minTestsOk
:
class MySpec extends Specification with ScalaCheck { def is = s2"""
MyThing should
do something the right way $x1
"""
def x1 = prop { (...) =>
...
}.set(minTestsOk = 1)
}
}