AllExpectations
This trait can be mixed-in a specification to allow examples to have all of their expectations being evaluated (unless the example body throws an exception of course).
All the results are collected into a list, provided by the StoredExpectations trait. These results form then the body of the each example (decorated by a special ExampleFactory) so that each example returns a Result which is the summary of all the individual issues.
It must be noted that this trait relies on a mutable list to collect the results as they are created in the example body. Because of this restriction, a Specification using that trait must run sequentially
If the specification is not sequential we force it to be
Attributes
- Graph
-
- Supertypes
-
trait ArgumentsCreationtrait StoredExpectationstrait StandardResultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
modify the fragments
modify the specification structure
Inherited methods
Attributes
- Inherited from:
- StandardResults
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StoredExpectations -> StandardResults
- Inherited from:
- StoredExpectations
shorthand method to create an Arguments object
shorthand method to create an Arguments object
Attributes
- Inherited from:
- ArgumentsCreation
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
Attributes
- Definition Classes
-
StoredExpectations -> ResultChecks
- Inherited from:
- StoredExpectations
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a function to show the element T
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- StandardResults
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StoredExpectations -> StandardResults
- Inherited from:
- StoredExpectations
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- SpecificationStructure
modify the fragments
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
Attributes
- Inherited from:
- ResultChecks
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Returns
-
the result without any side-effects
- Definition Classes
-
StoredExpectations -> ResultChecks
- Inherited from:
- StoredExpectations
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
Attributes
- Inherited from:
- MatchResultStackTrace
Attributes
- Inherited from:
- StandardResults
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StoredExpectations -> StandardResults
- Inherited from:
- StoredExpectations
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StoredExpectations
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Inherited fields
Attributes
- Inherited from:
- ArgumentsCreation
Extensions
Inherited extensions
Attributes
- Inherited from:
- ExpectationsDescription
Attributes
- Inherited from:
- ExpectationsDescription
! equality matcher on Expectables
! equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
equality matcher on Expectables
equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
Attributes
- Returns
-
an expectable with an alias description
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription