scala - Is it possible to specify at the site of a Property definition how many times to execute the Property? -



scala - Is it possible to specify at the site of a Property definition how many times to execute the Property? -

such this:

class myspec extends specification scalacheck { def = s2""" mything should right way $x1 """ def x1 = prop(4 /*times*/) { (...) => ... } } }

use setparameters , mintestsok:

class myspec extends specification scalacheck { def = s2""" mything should right way $x1 """ def x1 = prop { (...) => ... }.set(mintestsok = 1) } }

scala specs2 scalacheck

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -