Packages

o

sbt

Tests

object Tests

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tests
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Argument(framework: Option[TestFramework], args: List[String]) extends TestOption with Product with Serializable

    Defines arguments to pass to test frameworks.

    Defines arguments to pass to test frameworks.

    framework

    The test framework the arguments apply to if one is specified in Some. If None, the arguments will apply to all test frameworks.

    args

    The list of arguments to pass to the selected framework(s).

  2. final case class Cleanup(cleanup: (ClassLoader) ⇒ Unit) extends TestOption with Product with Serializable

    Defines a TestOption that will evaluate cleanup after all tests execute.

    Defines a TestOption that will evaluate cleanup after all tests execute. The ClassLoader provided to cleanup is the loader containing the test classes that ran. Cleanup is not currently performed for forked tests.

  3. final case class Exclude(tests: Iterable[String]) extends TestOption with Product with Serializable

    The names of tests to explicitly exclude from execution.

  4. final case class Execution(options: Seq[TestOption], parallel: Boolean, tags: Seq[(Tag, Int)]) extends Product with Serializable

    Configures test execution.

    Configures test execution.

    options

    The options to apply to this execution, including test framework arguments, filters, and setup and cleanup work.

    parallel

    If true, execute each unit of work returned by the test frameworks in separate sbt.Tasks. If false, execute all work in a single sbt.Task.

    tags

    The tags that should be added to each test task. These can be used to apply restrictions on concurrent execution.

  5. final case class Filter(filterTest: (String) ⇒ Boolean) extends TestOption with Product with Serializable

    Selects tests by name to run.

    Selects tests by name to run. Only tests for which filterTest returns true will be run.

  6. final case class Filters(filterTest: Seq[(String) ⇒ Boolean]) extends TestOption with Product with Serializable

    Test execution will be ordered by the position of the matching filter.

  7. final class Group extends Product with Serializable

    A named group of tests configured to run in the same JVM or be forked.

  8. final case class Listeners(listeners: Iterable[TestReportListener]) extends TestOption with Product with Serializable
  9. final case class Output(overall: TestResult, events: Map[String, SuiteResult], summaries: Iterable[Summary]) extends Product with Serializable

    The result of a test run.

    The result of a test run.

    overall

    The overall result of execution across all tests for all test frameworks in this test run.

    events

    The result of each test group (suite) executed during this test run.

    summaries

    Explicit summaries directly provided by test frameworks. This may be empty, in which case a default summary will be generated.

  10. final case class Setup(setup: (ClassLoader) ⇒ Unit) extends TestOption with Product with Serializable

    Defines a TestOption that will evaluate setup before any tests execute.

    Defines a TestOption that will evaluate setup before any tests execute. The ClassLoader provided to setup is the loader containing the test classes that will be run. Setup is not currently performed for forked tests.

  11. final case class SubProcess(config: ForkOptions) extends TestRunPolicy with Product with Serializable

    Configures a group of tests to be forked in a new JVM with forking options specified by config.

  12. final case class Summary(name: String, summaryText: String) extends Product with Serializable

    Summarizes a test run.

    Summarizes a test run.

    name

    The name of the test framework providing this summary.

    summaryText

    The summary message for tests run by the test framework.

  13. sealed trait TestRunPolicy extends AnyRef

    Configures whether a group of tests runs in the same JVM or are forked.

  14. type TestRunnable = (String, TestFunction)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Argument(tf: TestFramework, args: String*): Argument

    Defines a TestOption that passes arguments args to only the test framework tf.

  5. def Argument(args: String*): Argument

    Defines a TestOption that passes arguments args to all test frameworks.

  6. def Cleanup(cleanup: () ⇒ Unit): Cleanup

    Defines a TestOption that will evaluate cleanup after all tests execute.

    Defines a TestOption that will evaluate cleanup after all tests execute. Cleanup is not currently performed for forked tests.

  7. def Setup(setup: () ⇒ Unit): Setup

    Defines a TestOption that will evaluate setup before any tests execute.

    Defines a TestOption that will evaluate setup before any tests execute. Setup is not currently performed for forked tests.

  8. def allDefs(analysis: CompileAnalysis): Seq[Definition]
  9. def apply(frameworks: Map[TestFramework, Framework], testLoader: ClassLoader, runners: Map[TestFramework, Runner], discovered: Vector[TestDefinition], config: Execution, log: ManagedLogger): Task[Output]
  10. def apply(frameworks: Map[TestFramework, Framework], testLoader: ClassLoader, runners: Map[TestFramework, Runner], o: ProcessedOptions, config: Execution, log: ManagedLogger): Task[Output]
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. def discover(fingerprints: Seq[Fingerprint], definitions: Seq[Definition], log: Logger): (Seq[TestDefinition], Set[String])
  14. def discover(frameworks: Seq[Framework], analysis: CompileAnalysis, log: Logger): (Seq[TestDefinition], Set[String])
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def foldTasks(results: Seq[Task[Output]], parallel: Boolean): Task[Output]
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def makeParallel(loader: ClassLoader, runnables: Iterable[TestRunnable], setupTasks: Task[Unit], tags: Seq[(Tag, Int)]): Task[Map[String, SuiteResult]]
  23. def makeSerial(loader: ClassLoader, runnables: Seq[TestRunnable], setupTasks: Task[Unit]): Task[List[(String, SuiteResult)]]
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def overall(results: Iterable[TestResult]): TestResult
  28. def processResults(results: Iterable[(String, SuiteResult)]): Output
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def testTask(loader: ClassLoader, frameworks: Map[TestFramework, Framework], runners: Map[TestFramework, Runner], tests: Vector[TestDefinition], userSetup: Iterable[(ClassLoader) ⇒ Unit], userCleanup: Iterable[(ClassLoader) ⇒ Unit], log: ManagedLogger, testListeners: Vector[TestReportListener], config: Execution): Task[Output]
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def toTask(loader: ClassLoader, name: String, fun: TestFunction, tags: Seq[(Tag, Int)]): Task[Map[String, SuiteResult]]
  33. def toTasks(loader: ClassLoader, runnables: Seq[TestRunnable], tags: Seq[(Tag, Int)]): Task[Map[String, SuiteResult]]
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. object Group extends AbstractFunction3[String, Seq[TestDefinition], TestRunPolicy, Group] with Serializable
  38. object InProcess extends TestRunPolicy with Product with Serializable

    Configures a group of tests to run in the same JVM.

Deprecated Value Members

  1. def makeSerial(loader: ClassLoader, runnables: Seq[TestRunnable], setupTasks: Task[Unit], tags: Seq[(Tag, Int)]): Task[List[(String, SuiteResult)]]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.1) Use the variant without tags

Inherited from AnyRef

Inherited from Any

Ungrouped