org

scalatest

package scalatest

ScalaTest's main traits, classes, and other members, including members supporting ScalaTest's DSL for the Scala interpreter.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scalatest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AbstractSuite extends AnyRef

    Trait that defines abstract methods that are implemented in Suite that can be overriden in stackable modification traits.

  2. trait AppendedClues extends AnyRef

    Trait providing an implicit conversion that allows clues to be place after a block of code.

  3. trait Assertions extends AnyRef

    Trait that contains ScalaTest's basic assertion methods.

  4. trait BeforeAndAfter extends AbstractSuite

    Trait that can be mixed into suites that need code executed before and after running each test.

  5. trait BeforeAndAfterAll extends AbstractSuite

    Trait that can be mixed into suites that need methods invoked before and after executing the suite.

  6. trait BeforeAndAfterEach extends AbstractSuite

    Trait that can be mixed into suites that need methods invoked before and after running each test.

  7. final class ConfigMapWrapperSuite extends Suite

    Wrapper Suite that passes an instance of the config map to the constructor of the wrapped Suite when run is invoked.

  8. trait Distributor extends AnyRef

    Trait whose instances facilitate parallel execution of Suites.

  9. trait EitherValues extends AnyRef

    Trait that provides an implicit conversion that adds left.value and right.value methods to Either, which will return the selected value of the Either if defined, or throw TestFailedException if not.

  10. trait FailureOf extends AnyRef

    Trait that contains the failureOf method, which captures an exception thrown by a passed code block and returns it wrapped in a Some, or returns None if no exception is thrown.

  11. trait FeatureSpec extends Suite

    A suite of tests in which each test represents one scenario of a feature.

  12. final class Filter extends (Set[String], Map[String, Set[String]]) ⇒ List[(String, Boolean)]

    Filter whose apply method determines which of the passed tests to run and ignore based on tags to include and exclude passed as as class parameters.

  13. trait FlatSpec extends Suite with ShouldVerb with MustVerb with CanVerb

    Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

  14. trait FreeSpec extends Suite

    Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are nested inside text clauses denoted with the dash operator (-).

  15. trait FunSpec extends Suite

    Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

  16. trait FunSuite extends Suite

    A suite of tests in which each test is represented as a function value.

  17. trait GivenWhenThen extends AnyRef

    Trait that contains methods named Given, When, Then, and And, which take a string message and implicit Informer, and forward the message to the informer.

  18. trait Informer extends AnyRef

    Trait to which custom information about a running suite of tests can be reported.

  19. trait Inside extends AnyRef

    Trait containing the inside construct, which allows you to make statements about nested object graphs using pattern matching.

  20. trait NonImplicitAssertions extends Assertions

    Trait that can be mixed into a Suite to disable the lone implicit conversion provided by default in trait Assertions, which trait Suite extends.

  21. trait OneInstancePerTest extends AbstractSuite

    Trait that facilitates a style of testing in which each test is run in its own instance of the suite class to isolate each test from the side effects of the other tests in the suite.

  22. trait OptionValues extends AnyRef

    Trait that provides an implicit conversion that adds a value method to Option, which will return the value of the option if it is defined, or throw TestFailedException if not.

  23. trait ParallelTestExecution extends OneInstancePerTest

    Trait that causes that the tests of any suite it is mixed into to be run in parallel if a Distributor is passed to runTests.

  24. trait PartialFunctionValues extends AnyRef

    Trait that provides an implicit conversion that adds a valueAt method to PartialFunction, which will return the value (result) of the function applied to the argument passed to valueAt, or throw TestFailedException if the partial function is not defined at the argument.

  25. trait Payloads extends AnyRef

    Trait facilitating the inclusion of a payload in a thrown ScalaTest exception.

  26. final class PendingNothing extends AnyRef

    Type that is used as the return type of the pending method in class Suite, which always completes abruptly with a TestPendingException.

  27. trait PrivateMethodTester extends AnyRef

    Trait that facilitates the testing of private methods.

  28. trait PropSpec extends Suite

    A suite of property-based tests.

  29. trait Reporter extends AnyRef

    Trait whose instances collect the results of a running suite of tests and presents those results in some way to the user.

  30. trait ResourcefulReporter extends Reporter

    Subtrait of Reporter that contains a dispose method for releasing any finite, non-memory resources, such as file handles, held by the Reporter.

  31. trait SequentialNestedSuiteExecution extends AbstractSuite

    Trait that causes that the nested suites of any suite it is mixed into to be run sequentially even if a Distributor is passed to runNestedSuites.

  32. trait SeveredStackTraces extends AbstractSuite

    Trait that causes StackDepth exceptions thrown by a running test (such as TestFailedExceptions) to have the exception's stack trace severed at the stack depth.

  33. sealed trait Shell extends AnyRef

    Trait whose instances provide a run method and configuration fields that implement the ScalaTest shell: its DSL for the Scala interpreter.

  34. class Specs extends Suite

    A Suite class that takes zero to many (likely specification-style) Suites, which will be returned from its nestedSuites method.

  35. trait Stopper extends AnyRef

    Trait whose instances can indicate whether a stop has been requested.

  36. trait Suite extends Assertions with AbstractSuite with Serializable

    A suite of tests.

  37. class Suites extends Suite

    A Suite class that takes zero to many Suites, which will be returned from its nestedSuites method.

  38. class Tag extends AnyRef

    Class whose subclasses can be used to tag tests in types FunSuite, FunSpec, FlatSpec, WordSpec, FeatureSpec, and their sister traits in the org.scalatest.fixture package.

  39. final class Tracker extends AnyRef

    Class that tracks the progress of a series of Ordinals produced by invoking next and nextNewOldPair on the current Ordinal.

  40. trait WordSpec extends Suite with ShouldVerb with MustVerb with CanVerb

    Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

  41. trait BeforeAndAfterAllFunctions extends AbstractSuite

    Trait BeforeAndAfterAllFunctions has been deprecated and will be removed in a future version of ScalaTest. Please use trait BeforeAndAfterAll instead.

  42. trait BeforeAndAfterEachFunctions extends AbstractSuite

    Trait BeforeAndAfterEachFunctions has been deprecated and will be removed in a future version of ScalaTest. Please use trait BeforeAndAfter instead.

  43. type DuplicateTestNameException = scalatest.exceptions.DuplicateTestNameException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.DuplicateTestNameException to org.scalatest.exceptions.DuplicateTestNameException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.DuplicateTestNameException to org.scalatest.exceptions.DuplicateTestNameException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.DuplicateTestNameException instead.

  44. type ModifiableMessage[T <: Throwable] = scalatest.exceptions.ModifiableMessage[T]

    This trait has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.ModifiableMessageXXX to org.scalatest.exceptions.ModifiableMessageXXX.

    This trait has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.ModifiableMessageXXX to org.scalatest.exceptions.ModifiableMessageXXX.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.ModifiableMessageXXX instead.

  45. type NotAllowedException = scalatest.exceptions.NotAllowedException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.NotAllowedException to org.scalatest.exceptions.NotAllowedException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.NotAllowedException to org.scalatest.exceptions.NotAllowedException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.NotAllowedException instead.

  46. trait Rerunner extends AnyRef

    Trait whose instances can rerun tests or other entities (such as suites).

  47. trait Spec extends FunSpec

    Spec has been deprecated and will be used for a different purpose in a future version of ScalaTest. Please change any uses of org.scalatest.Spec to a corresponding use of org.scalatest.FunSpec. This is just a name change, so all you need to do is add Fun in front of Spec.

  48. type StackDepth = scalatest.exceptions.StackDepth

    This trait has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepth to org.scalatest.exceptions.StackDepth.

    This trait has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepth to org.scalatest.exceptions.StackDepth.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.StackDepth instead.

  49. type StackDepthException = scalatest.exceptions.StackDepthException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepthException to org.scalatest.exceptions.StackDepthException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepthException to org.scalatest.exceptions.StackDepthException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.StackDepthException instead.

  50. class SuperSuite extends Suites

    SuperSuite has been deprecated and will be removed in a future release of ScalaTest. Please change any uses of SuperSuite to a corresponding use of Suites or Specs instead.

  51. type TestFailedException = scalatest.exceptions.TestFailedException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestFailedException to org.scalatest.exceptions.TestFailedException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestFailedException to org.scalatest.exceptions.TestFailedException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.TestFailedException instead.

  52. type TestPendingException = scalatest.exceptions.TestPendingException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestPendingException to org.scalatest.exceptions.TestPendingException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestPendingException to org.scalatest.exceptions.TestPendingException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.TestPendingException instead.

  53. type TestRegistrationClosedException = scalatest.exceptions.TestRegistrationClosedException

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestRegistrationClosedException to org.scalatest.exceptions.TestRegistrationClosedException.

    This class has been moved to the org.scalatest.exceptions package. The deprecated type alias that has been left in its place will be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestRegistrationClosedException to org.scalatest.exceptions.TestRegistrationClosedException.

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.exceptions.TestRegistrationClosedException instead.

Value Members

  1. object AppendedClues extends AppendedClues

    Companion object that facilitates the importing of AppendedClues members as an alternative to mixing it in.

  2. object Assertions extends Assertions

    Companion object that facilitates the importing of Assertions members as an alternative to mixing it in.

  3. object Distributor

    Companion object to Distributor that holds a deprecated implicit conversion.

  4. object EitherValues extends EitherValues

    Companion object that facilitates the importing of ValueEither members as an alternative to mixing it in.

  5. object FailureOf extends FailureOf

    Companion object that facilitates the importing of FailureOf's method as an alternative to mixing it in.

  6. object Filter

  7. object GivenWhenThen extends GivenWhenThen

    Companion object that facilitates the importing of GivenWhenThen members as an alternative to mixing it in.

  8. object Inside extends Inside

    Companion object that facilitates the importing of the inside construct as an alternative to mixing it in.

  9. object NonImplicitAssertions extends NonImplicitAssertions

    Companion object that facilitates the importing of the members of trait Assertions without importing the implicit conversions it provides by default.

  10. object OptionValues extends OptionValues

    Companion object that facilitates the importing of OptionValues members as an alternative to mixing it in.

  11. object PartialFunctionValues extends PartialFunctionValues

    Companion object that facilitates the importing of PartialFunctionValues members as an alternative to mixing it in.

  12. object PrivateMethodTester extends PrivateMethodTester

    Companion object that facilitates the importing of PrivateMethodTester members as an alternative to mixing it in.

  13. object Reporter

    Companion object to Reporter that holds a deprecated implicit conversion.

  14. object Rerunner

    Companion object to Rerunner that holds a deprecated implicit conversion.

  15. object Specs extends Serializable

    Companion object to class Specs that offers an apply factory method for creating a Specs instance.

  16. object Stopper

    Companion object to Stopper that holds a deprecated implicit conversion.

  17. object Suites extends Serializable

    Companion object to class Suites that offers an apply factory method for creating a Suites instance.

  18. object Tag

    Companion object for Tag, which offers a factory method.

  19. lazy val color: Shell

    Returns a copy of this Shell with colorPassed configuration parameter set to true.

  20. package concurrent

  21. lazy val durations: Shell

    Returns a copy of this Shell with durationsPassed configuration parameter set to true.

  22. package events

  23. package exceptions

  24. package fixture

  25. lazy val fullstacks: Shell

    Returns a copy of this Shell with fullStacksPassed configuration parameter set to true.

  26. package junit

  27. package matchers

  28. package mock

  29. lazy val nocolor: Shell

    Returns a copy of this Shell with colorPassed configuration parameter set to false.

  30. lazy val nodurations: Shell

    Returns a copy of this Shell with durationsPassed configuration parameter set to false.

  31. lazy val nostacks: Shell

    Returns a copy of this Shell with shortStacksPassed configuration parameter set to false.

  32. lazy val nostats: Shell

    Returns a copy of this Shell with statsPassed configuration parameter set to false.

  33. package path

  34. package prop

    Package object to hold deprecated type aliases for exception classes moved from org.

  35. object run

    Singleton object providing an apply method for the ScalaTest shell and a main method for ScalaTest's simple runner.

  36. lazy val shortstacks: Shell

    Returns a copy of this Shell with shortStacksPassed configuration parameter set to true.

  37. lazy val stats: Shell

    Returns a copy of this Shell with statsPassed configuration parameter set to true.

  38. package testng

  39. package time

  40. package tools

  41. package verb

Inherited from AnyRef

Inherited from Any

Ungrouped