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

とを使用setParametersminTestsOkます。

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 に答える