diff --git a/src/sphinx/Community/Changes.rst b/src/sphinx/Community/Changes.rst index 9e2cd4592..bc4ffb0fe 100644 --- a/src/sphinx/Community/Changes.rst +++ b/src/sphinx/Community/Changes.rst @@ -352,10 +352,10 @@ Some of the more visible changes: - Scala 2.8.1 is the default version used when starting a new project. - Updated to `Ivy 2.2.0 `_. - Trond's patches that allow configuring - `jetty-env.xml `_ + `jetty-env.xml `_ and - `webdefault.xml `_ -- Doug's `patch `_ + `webdefault.xml `_ +- Doug's `patch `_ to make 'projects' command show an asterisk next to current project - Fixed issue 122 - Implemented issue 118 diff --git a/src/sphinx/Detailed-Topics/Testing.rst b/src/sphinx/Detailed-Topics/Testing.rst index bf3a2ac55..617bd95eb 100644 --- a/src/sphinx/Detailed-Topics/Testing.rst +++ b/src/sphinx/Detailed-Topics/Testing.rst @@ -15,16 +15,16 @@ The resources may be accessed from tests by using the ``getResource`` methods of ``java.lang.Class`` or ``java.lang.ClassLoader``. The main Scala testing frameworks -(`specs2 `_, -`ScalaCheck `_, and -`ScalaTest `_) provide an +(`specs2 `_, +`ScalaCheck `_, and +`ScalaTest `_) provide an implementation of the common test interface and only need to be added to the classpath to work with sbt. For example, ScalaCheck may be used by declaring it as a :doc:`managed dependency `: :: - libraryDependencies += "org.scala-tools.testing" %% "scalacheck" % "1.9" % "test" + libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.9" % "test" The fourth component ``"test"`` is the :ref:`configuration ` and means that ScalaCheck will only be on the test classpath and it @@ -241,7 +241,7 @@ The following full build configuration demonstrates integration tests. .settings( Defaults.itSettings : _*) .settings( libraryDependencies += specs ) - lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.8" % "it,test" + lazy val specs = "org.specs2" %% "specs2" % "2.0" % "it,test" } - ``configs(IntegrationTest)`` adds the predefined integration test @@ -312,7 +312,7 @@ The previous example may be generalized to a custom test configuration. .settings( libraryDependencies += specs ) lazy val FunTest = config("fun") extend(Test) - lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.8" % "fun" + lazy val specs = "org.specs2" %% "specs2" % "2.0" % "fun" } Instead of using the built-in configuration, we defined a new one: @@ -368,16 +368,16 @@ However, different tests are run depending on the configuration. .configs( FunTest ) .settings( inConfig(FunTest)(Defaults.testTasks) : _*) .settings( - libraryDependencies += specs, - testOptions in Test := Seq(Tests.Filter(itFilter)), - testOptions in FunTest := Seq(Tests.Filter(unitFilter)) - ) + libraryDependencies += specs, + testOptions in Test := Seq(Tests.Filter(itFilter)), + testOptions in FunTest := Seq(Tests.Filter(unitFilter)) + ) def itFilter(name: String): Boolean = name endsWith "ITest" def unitFilter(name: String): Boolean = (name endsWith "Test") && !itFilter(name) lazy val FunTest = config("fun") extend(Test) - lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.8" % "test" + lazy val specs = "org.specs2" %% "specs2" % "2.0" % "test" } The key differences are: @@ -434,7 +434,7 @@ your project's main build.sbt file. :: - libraryDependencies += "com.novocode" % "junit-interface" % "0.8" % "test->default" + libraryDependencies += "com.novocode" % "junit-interface" % "0.9" % "test" Extensions ========== @@ -452,7 +452,7 @@ Custom Test Framework The main Scala testing libraries have built-in support for sbt. To add support for a different framework, implement the -`uniform test interface `_. +`uniform test interface `_. Custom Test Reporters ---------------------