diff options
| author | Henry Cook | 2015-11-04 09:54:54 -0800 |
|---|---|---|
| committer | Henry Cook | 2015-11-04 09:54:54 -0800 |
| commit | 7a2d099a05eefa721977794a36d38af4c39258b6 (patch) | |
| tree | 098bee41eee7583bc6362bad2d4342c4642f06de /src/test/scala | |
| parent | a3c9680d1e2b84693759747a4779341ba80c4a50 (diff) | |
Supply smaller values for generatorDrivenConfig to reduce test time.
Diffstat (limited to 'src/test/scala')
| -rw-r--r-- | src/test/scala/chiselTests/ChiselSpec.scala | 4 |
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) |
