trait AllExpectations extends StoredExpectations with FragmentsFactory with SpecificationStructure with ArgumentsCreation with StandardResults
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.
- Alphabetic
- By Inheritance
- AllExpectations
- StandardResults
- ArgumentsCreation
- SpecificationStructure
- ContextualSpecificationStructure
- FragmentsFactory
- StoredExpectations
- Expectations
- ExpectationsDescription
- TypedEqual
- ExpectationsCreation
- MatchResultStackTrace
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Abstract Value Members
- abstract def is: SpecStructure
- Definition Classes
- SpecificationStructure
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addLocation(message: String, location: String): String
- Definition Classes
- StoredExpectations
- def anError: Error
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- AllExpectations → StandardResults
- def args(ex: ArgProperty[String], include: ArgProperty[String], exclude: ArgProperty[String], was: ArgProperty[String], plan: ArgProperty[Boolean], skipAll: ArgProperty[Boolean], stopOnFail: ArgProperty[Boolean], stopOnError: ArgProperty[Boolean], stopOnIssue: ArgProperty[Boolean], stopOnSkip: ArgProperty[Boolean], sequential: ArgProperty[Boolean], batchSize: ArgProperty[Int], asap: ArgProperty[Boolean], isolated: ArgProperty[Boolean], xonly: ArgProperty[Boolean], showOnly: ArgProperty[String], color: ArgProperty[Boolean]): Arguments
- Definition Classes
- ArgumentsCreation
- lazy val args: ArgumentsNamespace
- Definition Classes
- ArgumentsCreation
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- StoredExpectations → ExpectationsCreation
- def checkResultFailure(r: => Result): Result
- Attributes
- protected
- Definition Classes
- StoredExpectations → ExpectationsCreation
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createExpectable[T](t: => T, alias: Option[(String) => String]): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T, alias: (String) => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T, alias: => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectable[T](t: => T): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]
- Definition Classes
- ExpectationsCreation
- def decorate(is: SpecStructure, env: Env): SpecStructure
- Definition Classes
- SpecificationStructure
- implicit def describe[T](t: => T): Descriptible[T]
- Definition Classes
- ExpectationsDescription
- implicit def describeExpectation(description: String): ExpectationDescription
- Definition Classes
- ExpectationsDescription
- def done: Success
- Definition Classes
- StandardResults
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failure(message: String): Failure
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- AllExpectations → StandardResults
- def failure: Failure
- Definition Classes
- StandardResults
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit def fragmentFactory: FragmentFactory
- returns
an example factory which will take the stored results and make them the example result
- Attributes
- protected
- Definition Classes
- AllExpectations → FragmentsFactory
- def fragments: (Env) => Fragments
- Definition Classes
- ContextualSpecificationStructure
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map(structure: SpecStructure): SpecStructure
modify the specification structure
modify the specification structure
- Definition Classes
- AllExpectations → SpecificationStructure
- def map(fs: => Fragments, env: Env): Fragments
modify the fragments, using the current environment
modify the fragments, using the current environment
- Definition Classes
- SpecificationStructure
- def map(fs: => Fragments): Fragments
modify the fragments
modify the fragments
- Definition Classes
- SpecificationStructure
- def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pending[R](r: => R)(implicit arg0: AsResult[R]): Pending
- Definition Classes
- StandardResults
- def pending: Pending
- Definition Classes
- StandardResults
- def pending(message: String): Pending
- Definition Classes
- StandardResults
- def resultsContext(results: => Seq[Result]): Context
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
- def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
- Definition Classes
- StoredExpectations → ExpectationsCreation
- def setStacktrace[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace
- def skipped(message: String): Skipped
use a side-effect to register a standard result
use a side-effect to register a standard result
- Definition Classes
- AllExpectations → StandardResults
- def skipped[R](r: => R)(implicit arg0: AsResult[R]): Skipped
- Definition Classes
- StandardResults
- def skipped: Skipped
- Definition Classes
- StandardResults
- def storedResults: Seq[Result]
- Definition Classes
- StoredExpectations
- def structure: (Env) => SpecStructure
- Definition Classes
- SpecificationStructure → ContextualSpecificationStructure
- def success: Success
- Definition Classes
- StandardResults
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def todo: Pending
- Definition Classes
- StandardResults
- implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]
- Definition Classes
- TypedEqual
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def wontdo: Success
- Definition Classes
- StandardResults