Skip to content

Commit

Permalink
Support updated scalatest/scalacheck; bump sbt and Scala versions. (c…
Browse files Browse the repository at this point in the history
…hipsalliance#605)

bump scoverage version
  • Loading branch information
ucbjrl authored and jackkoenig committed May 26, 2017
1 parent 0d121a2 commit ee599da
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lazy val commonSettings = Seq (
version := "3.1-SNAPSHOT",
git.remoteRepo := "[email protected]:ucb-bar/chisel3.git",
autoAPIMappings := true,
scalaVersion := "2.11.7",
scalaVersion := "2.11.11",
scalacOptions := Seq("-deprecation", "-feature"),
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
Expand Down Expand Up @@ -81,9 +81,9 @@ lazy val chiselSettings = Seq (
),

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.5" % "test",
"org.scalacheck" %% "scalacheck" % "1.12.4" % "test",
"com.github.scopt" %% "scopt" % "3.4.0"
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"com.github.scopt" %% "scopt" % "3.5.0"
),

// Tests from other projects may still run concurrently.
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.12
sbt.version=0.13.15
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")

addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.4")

Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/chiselTests/ChiselSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ChiselPropSpec extends PropSpec with ChiselRunners with PropertyChecks wit

// Constrain the default number of instances generated for every use of forAll.
implicit override val generatorDrivenConfig =
PropertyCheckConfig(minSuccessful = 8, minSize = 1, maxSize = 4)
PropertyCheckConfiguration(minSuccessful = 8, minSize = 1, sizeRange = 3)

// Generator for small positive integers.
val smallPosInts = Gen.choose(1, 4)
Expand Down
3 changes: 2 additions & 1 deletion src/test/scala/chiselTests/Direction.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package chiselTests

import chisel3._
import org.scalatest._
import org.scalatest.matchers._
import org.scalatest.prop._
import chisel3.testers.BasicTester

Expand All @@ -22,7 +23,7 @@ class BadDirection extends DirectionHaver {
io.in := 0.U
}

class DirectionSpec extends ChiselPropSpec with ShouldMatchers {
class DirectionSpec extends ChiselPropSpec with Matchers {

//TODO: In Chisel3 these are actually FIRRTL errors. Remove from tests?

Expand Down

0 comments on commit ee599da

Please sign in to comment.