Skip to content

Commit

Permalink
test task runs Junit tests
Browse files Browse the repository at this point in the history
Add dependency on scaladoc in junit subproject, as required by
6e6632e (it introduced a junit test for scaladoc).

Enable assertion stack traces and info logging of each test.
  • Loading branch information
retronym authored and adriaanm committed Apr 17, 2015
1 parent fc2b35a commit dbb5274
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ val scalaParserCombinatorsDep = "org.scala-lang.modules" %% "scala-parser-combin
val scalaXmlDep = "org.scala-lang.modules" %% "scala-xml" % versionNumber("scala-xml") exclude("org.scala-lang", "scala-library")
val partestDep = "org.scala-lang.modules" %% "scala-partest" % versionNumber("partest") exclude("org.scala-lang", "scala-library")
val junitDep = "junit" % "junit" % "4.11"
val junitIntefaceDep = "com.novocode" % "junit-interface" % "0.11" % "test"
val jlineDep = "jline" % "jline" % versionProps("jline.version")
val antDep = "org.apache.ant" % "ant" % "1.9.4"

Expand Down Expand Up @@ -217,13 +218,15 @@ lazy val partestExtras = configureAsSubproject(Project("partest-extras", file(".
)

lazy val junit = project.in(file("test") / "junit")
.dependsOn(library, reflect, compiler, partestExtras)
.dependsOn(library, reflect, compiler, partestExtras, scaladoc)
.settings(clearSourceAndResourceDirectories: _*)
.settings(commonSettings: _*)
.settings(
scalaVersion := bootstrapScalaVersion,
ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) },
libraryDependencies += junitDep,
fork in Test := true,
libraryDependencies ++= Seq(junitDep, junitIntefaceDep),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
unmanagedSourceDirectories in Test := List(baseDirectory.value)
)

Expand Down

0 comments on commit dbb5274

Please sign in to comment.