From 7a2d099a05eefa721977794a36d38af4c39258b6 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Wed, 4 Nov 2015 09:54:54 -0800 Subject: Supply smaller values for generatorDrivenConfig to reduce test time. --- src/test/scala/chiselTests/ChiselSpec.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test') 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) -- cgit v1.2.3