Open mpilquist opened 4 years ago
Hi @mpilquist! It seems you're supposing that there's a way to alter parameters on a per ScalaCheckEffectSuite
basis, correct?
As far as I see genParameters: Gen.Parameters
in ScalaCheckEffectSuite
is private so it can't be accessed or modified (in scalacheck-effect-munit 1.0.3).
Yeah, the idea is to override scalaCheckTestParameters
from the super ScalaCheckSuite
:
protected def scalaCheckTestParameters = ScalaCheckTest.Parameters.default
FS2 does this here:
override def scalaCheckTestParameters =
super.scalaCheckTestParameters
.withMinSuccessfulTests(if (isJVM) 25 else 5)
.withWorkers(1)
Brilliant! Thanks and sorry for the off-topic.
ScalaCheck supports this like so:
To support in
PropF
, we could add a method likemapParameters(f: Gen.Parameters => Gen.Parameters): PropF[F]
.