Class

org.scalatest.tools

ScalaTestFramework

Related Doc: package tools

Permalink

class ScalaTestFramework extends scalatools.testing.Framework

Class that makes ScalaTest tests visible to SBT (prior to version 0.13).

To use ScalaTest in SBT, you should add ScalaTest as dependency in your SBT build file, the following shows an example for using ScalaTest 2.0 with Scala 2.10.x project:

"org.scalatest" % "scalatest_2.10" % "2.0" % "test"

To pass argument to ScalaTest from SBT, you can use testOptions:

testOptions in Test += Tests.Argument("-u", "target/junit")  // Use JUnitXmlReporter

If you are using multiple testing frameworks, you can pass arguments specific to ScalaTest only:

testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-u", "target/junit") // Use JUnitXmlReporter

Supported arguments

Integration in SBT 0.13 supports same argument format as Runner, except the following arguments:

It is highly recommended to upgrade to SBT 0.13 to enjoy the best of ScalaTest 2.0 SBT integration. Due to limitations in old Framework API (prior to SBT 0.13), it is hard to support ScalaTest features in the most efficient way. One example is the nested suites, where in old Framework API they has to be executed sequentially, while new Framework API (included in SBT 0.13) the concept of nested Task has enabled parallel execution of ScalaTest's nested suites.

Source
ScalaTestFramework.scala
Linear Supertypes
scalatools.testing.Framework, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaTestFramework
  2. Framework
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaTestFramework()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. def name(): String

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def testRunner(testLoader: ClassLoader, loggers: Array[Logger]): ScalaTestRunner

    Permalink

    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
  18. def tests(): Array[Fingerprint]

    Permalink

    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
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from scalatools.testing.Framework

Inherited from AnyRef

Inherited from Any

Ungrouped