org.scalatest.tools

ScalaTestFramework

class ScalaTestFramework extends Framework

Class that makes ScalaTest tests visible to sbt.

To use ScalaTest from within sbt, simply add a line like this to your project file (for sbt 0.1.0 or higher):

libraryDependencies += "org.scalatest" % "scalatest_2.9.0" % "1.6.1" % "test"

The above line of code will work for any version of Scala 2.9 (for example, it works for Scala 2.9.0-1).

libraryDependencies += "org.scalatest" % "scalatest_2.8.1" % "1.5.1" % "test"

You can configure the output shown when running with sbt in four ways: 1) turn off color, 2) show short stack traces, 3) full stack traces, and 4) show durations for everything. To do that you need to add test options, like this:

override def testOptions = super.testOptions ++
  Seq(TestArgument(TestFrameworks.ScalaTest, "-oD"))

After the -o, place any combination of:

For example, "-oDF" would show full stack traces and durations (the amount of time spent in each test).

Linear Supertypes
Framework, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ScalaTestFramework
  2. Framework
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaTestFramework ()

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object RunConfig extends AnyRef

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  13. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  14. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  15. def name (): String

    Returns "ScalaTest", the human readable name for this test framework.

    Returns "ScalaTest", the human readable name for this test framework.

    Definition Classes
    ScalaTestFramework → Framework
  16. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  18. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  19. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  20. def testRunner (testLoader: ClassLoader, loggers: Array[Logger]): ScalaTestRunner

    Returns an org.scalatools.testing.Runner that will load test classes via the passed testLoader and direct output from running the tests to the passed array of Loggers.

    Returns an org.scalatools.testing.Runner that will load test classes via the passed testLoader and direct output from running the tests to the passed array of Loggers.

    Definition Classes
    ScalaTestFramework → Framework
  21. def tests (): Array[Fingerprint]

    Returns an array containing fingerprint for ScalaTest's test, which are classes whose superclass name is org.scalatest.Suite or is annotated with org.scalatest.WrapWith.

    Returns an array containing fingerprint for ScalaTest's test, which are classes whose superclass name is org.scalatest.Suite or is annotated with org.scalatest.WrapWith.

    Definition Classes
    ScalaTestFramework → Framework
  22. def toString (): String

    Definition Classes
    AnyRef → Any
  23. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Framework

Inherited from AnyRef

Inherited from Any