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
Value members
Concrete methods
Inherited methods
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- StoredExpectations -> StandardResults
- Inherited from
- StoredExpectations
shorthand method to create an Arguments object
shorthand method to create an Arguments object
- Inherited from
- ArgumentsCreation
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- StoredExpectations -> StandardResults
- Inherited from
- StoredExpectations
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
- Inherited from
- ResultChecks
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
- Inherited from
- MatchResultStackTrace
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- StoredExpectations -> StandardResults
- Inherited from
- StoredExpectations
Inherited fields
Extensions
Inherited extensions
- Inherited from
- ExpectationsDescription
- Inherited from
- ExpectationsDescription
- 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
- Returns
an expectable with an alias description, after the value string
- Inherited from
- ExpectationsDescription
- Returns
an expectable with an alias description, after the value string
- Inherited from
- ExpectationsDescription
- Returns
an expectable with a function to show the element T
- Inherited from
- ExpectationsDescription