diff options
| author | Henry Cook | 2015-11-04 15:08:00 -0800 |
|---|---|---|
| committer | Henry Cook | 2015-11-04 15:08:00 -0800 |
| commit | 9e58aef3abf1e7139d8e6b1068937dfcbb5c9ae3 (patch) | |
| tree | fd53cfcb8dbbfeb311a018cc2045b28697e6f4f0 /src/test/scala/chiselTests/ChiselSpec.scala | |
| parent | a3c9680d1e2b84693759747a4779341ba80c4a50 (diff) | |
| parent | cc9845a05ddb013408643180be007530496fffc9 (diff) | |
Merge pull request #54 from ucb-bar/testing-improvements
Testing improvements fixing 4 broken tests and reducing runtime
Diffstat (limited to 'src/test/scala/chiselTests/ChiselSpec.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) |
