Trait that defines abstract methods that are implemented in Suite
that can
be overriden in stackable modification traits.
Trait that contains ScalaTest's basic assertion methods.
Trait that can be mixed into suites that need methods invoked before and after executing the suite.
Trait that can be mixed into suites that need code executed before and after executing the suite.
Trait that can be mixed into suites that need methods invoked before and after running each test.
Trait that can be mixed into suites that need code executed before and after running each test.
Trait whose instances facilitate parallel execution of Suite
s.
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.
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.
A suite of tests in which each test represents one scenario of a feature.
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.
Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.
Trait that facilitates a “behavior-driven” style of development (BDD), in which tests
are nested inside text clauses denoted with the dash operator (-
).
A suite of tests in which each test is represented as a function value.
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.
Trait to which custom information about a running suite of tests can be reported.
Trait implemented by exception types that can modify their detail message.
Exception that indicates something was attempted in test code that is not allowed.
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.
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
.
Type that is used as the return type of the pending
method in classSuite
, which always completes abruptly with aTestPendingException
.
Trait that facilitates the testing of private methods.
A suite of property-based tests.
Trait whose instances collect the results of a running suite of tests and presents those results in some way to the user.
Trait whose instances can rerun tests or other entities (such as suites).
Subtrait of Reporter
that contains a dispose
method for
releasing any finite, non-memory resources, such as file handles, held by theReporter
. Runner
will invoke dispose
on
any ResourcefulReporter
when it no longer needs the Reporter
.
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
.
Trait that causes StackDepth
exceptions thrown by a running test (such as TestFailedException
s) to have
the exception's stack trace severed at the stack depth.
Trait whose instances provide a run
method and configuration fields that implement
the ScalaTest shell: its DSL for the Scala interpreter.
Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.
A Suite
class that takes zero to many (likely specification-style) Suite
s,
which will be returned from its nestedSuites
method.
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.
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.
Trait whose instances can indicate whether a stop has been requested.
A suite of tests.
A Suite
class that takes zero to many Suite
s,
which will be returned from its nestedSuites
method.
SuperSuite has been deprecated and will be removed in a future release of ScalaTest.
Class whose subclasses can be used to tag tests in types FunSuite
,Spec
, FlatSpec
, WordSpec
, FeatureSpec
, and their
sister traits in the org.scalatest.fixture
package.
Exception that indicates a test failed.
Exception thrown to indicate a test is pending.
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.
Class that tracks the progress of a series of Ordinal
s produced by invokingnext
and nextNewOldPair
on the current Ordinal
.
Trait that facilitates a “behavior-driven” style of development (BDD), in which tests are combined with text that specifies the behavior the tests verify.
Companion object that facilitates the importing of Assertions
members as
an alternative to mixing it in.
Companion object to Distributor that holds a deprecated implicit conversion.
Companion object that facilitates the importing of FailureOf
's method as
an alternative to mixing it in.
Companion object that facilitates the importing of GivenWhenThen
members as
an alternative to mixing it in.
Companion object that facilitates the importing of PrivateMethodTester
members as
an alternative to mixing it in.
Companion object to Reporter that holds a deprecated implicit conversion.
Companion object to Rerunner that holds a deprecated implicit conversion.
Companion object to class Specs
that offers an apply
factory method
for creating a Specs
instance.
Companion object to Stopper that holds a deprecated implicit conversion.
Companion object to class Suites
that offers an apply
factory method
for creating a Suites
instance.
Companion object for Tag
, which offers a factory method.
Run the passed suite, optionally passing in a test name and config map.
Run the passed suite, optionally passing in a test name and config map.
This method will invoke execute
on the passed suite
, passing in
the specified (or default) testName
and configMap
and the configuration values
passed to this Shell
's constructor (colorPassed
, durationsPassed
, shortStacksPassed
,fullStacksPassed
, and statsPassed
).
Members supporting ScalaTest's DSL for the Scala interpreter.