summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/scala/chiselTests/ChiselSpec.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/ChiselSpec.scala b/src/test/scala/chiselTests/ChiselSpec.scala
index 88aaf06c..8848d4f5 100644
--- a/src/test/scala/chiselTests/ChiselSpec.scala
+++ b/src/test/scala/chiselTests/ChiselSpec.scala
@@ -20,6 +20,10 @@ class ChiselFlatSpec extends FlatSpec with ChiselRunners with Matchers
/** Spec base class for property-based testers. */
class ChiselPropSpec extends PropSpec with ChiselRunners with PropertyChecks {
+ // Constrain the default number of instances generated for every use of forAll.
+ implicit override val generatorDrivenConfig =
+ PropertyCheckConfig(minSuccessful = 8, minSize = 1, maxSize = 4)
+
// Generator for small positive integers.
val smallPosInts = Gen.choose(1, 4)