1

比如这样:

class MySpec extends Specification with ScalaCheck { def is = s2"""
  MyThing should
    do something the right way $x1
                                """
    def x1 = prop(4 /*times*/) { (...) =>
      ...
    }
  }
}
4

1 回答 1

1

Use setParameters and minTestsOk:

class MySpec extends Specification with ScalaCheck { def is = s2"""
  MyThing should
    do something the right way $x1
                                """
    def x1 = prop { (...) =>
      ...
    }.set(minTestsOk = 1)
  }
}
于 2015-04-09T23:24:10.567 回答