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 can either run sequentially or isolated.
If the specification is neither sequential or isolated, we force it to be isolated by default.
Type members
Inherited classlikes
Value members
Concrete methods
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- StandardResults
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- StandardResults
create a new Context with the list of captured results.
create a new Context with the list of captured results.
This method could be overridden to filter the captured results and remove the skipped results for example
Inherited methods
shorthand method to create an Arguments object
shorthand method to create an Arguments object
- Inherited from:
- ArgumentsCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Inherited from:
- ExpectationsCreation
modify the fragments, using the current environment
modify the fragments, using the current environment
- Inherited from:
- SpecificationStructure
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
- Inherited from:
- ExpectationsCreation
Inherited fields
Implicits
Implicits
Inherited implicits
describe a value with the aka method
describe a value with the aka method
- Inherited from:
- ExpectationsDescription