org

# scalatest

#### package scalatest

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 Assertions extends AnyRef

   Trait that contains ScalaTest's basic assertion methods.

3. #### trait BeforeAndAfter extends BeforeAndAfterEach with BeforeAndAfterAll

   This trait has been deprecated and will be removed in a future version of ScalaTest.

4. #### trait BeforeAndAfterAll extends AbstractSuite

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

5. #### trait BeforeAndAfterEach extends AbstractSuite

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

6. #### trait Distributor extends (Suite, Tracker) ⇒ Unit

   Trait whose instances facilitate parallel execution of `Suite`s.

7. #### class DuplicateTestNameException extends StackDepthException

   Exception that indicates an attempt was made to register a test that had the same name as a test already registered in the same suite.

8. #### trait FeatureSpec extends Suite

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

9. #### 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.

10. #### trait FlatSpec extends Suite with ShouldVerb with MustVerb with CanVerb

    Trait that facilitates a &#8220;behavior-driven&#8221; style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

11. #### trait FunSuite extends Suite

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

12. #### 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.

13. #### class Group extends Tag

    Group has been deprecated.

14. #### trait Informer extends AnyRef

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

15. #### class NotAllowedException extends StackDepthException

    Exception that indicates something was attempted in test code that is not allowed.

16. #### 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.

17. #### 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`.

18. #### 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`.

19. #### trait PrivateMethodTester extends AnyRef

    Trait that facilitates the testing of private methods.

20. #### class Report extends AnyRef

    Class formerly used to send reports to a `Reporter`.

21. #### trait Reporter extends (Event) ⇒ Unit

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

22. #### trait Rerunnable extends AnyRef

    Trait formerly used to rerun tests or other entities (such as suites).

23. #### trait Rerunner extends (Reporter, Stopper, Filter, Map[String, Any], Option[Distributor], Tracker, ClassLoader) ⇒ Unit

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

24. #### 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`.

25. #### 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`.

26. #### trait Spec extends Suite

    Trait that facilitates a &#8220;behavior-driven&#8221; style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

27. #### class SpecReport extends Report

    Class formerly used to send specification-style reports to a `Reporter`.

28. #### trait StackDepth extends AnyRef

    Trait that encapsulates the information required of an exception thrown by ScalaTest's assertions and matchers, which includes a stack depth at which the failing line of test code resides.

29. #### class StackDepthException extends RuntimeException with StackDepth

    Exception class that encapsulates information about the stack depth at which the line of code that failed resides, so that information can be presented to the user that makes it quick to find the failing line of code.

30. #### trait Stopper extends () ⇒ Boolean

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

31. #### trait Suite extends Assertions with AbstractSuite

    A suite of tests.

32. #### class SuperSuite extends Suite

    A `Suite` class that takes a `List[Suite]` parameter, which overrides the `nestedSuites` method of trait `Suite`.

33. #### class Tag extends AnyRef

    Class whose subclasses can be used to tag tests in types `FunSuite`,`Spec`, `FlatSpec`, `WordSpec`, `FeatureSpec`, and their sister traits in the `org.`

34. #### class TestFailedException extends StackDepthException

    Exception that indicates a test failed.

35. #### class TestPendingException extends RuntimeException

    Exception thrown to indicate a test is pending.

36. #### class TestRegistrationClosedException extends StackDepthException

    Exception that indicates an action that is only allowed during a suite's test registration phase, such as registering a test to run or ignore, was attempted after registration had already closed.

37. #### class Tracker extends AnyRef

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

38. #### trait WordSpec extends Suite with ShouldVerb with MustVerb with CanVerb

    Trait that facilitates a &#8220;behavior-driven&#8221; style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.

### Value Members

1. #### object Assertions extends Assertions

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

2. #### object Filter extends AnyRef

3. #### object GivenWhenThen extends GivenWhenThen

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

4. #### object PrivateMethodTester extends PrivateMethodTester

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

5. #### object Tag extends AnyRef

   Companion object for `Tag`, which offers a factory method.

6. #### package concurrent

7. #### package events

8. #### package fixture

9. #### package junit

10. #### package matchers

11. #### package mock

12. #### package prop

13. #### package testng

14. #### package tools

15. #### package verb