org.specs2.runner

TextRunner

class TextRunner extends ClassRunner

Linear Supertypes
ClassRunner, SystemExit, ConsoleOutput, Classes, Output, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TextRunner
  2. ClassRunner
  3. SystemExit
  4. ConsoleOutput
  5. Classes
  6. Output
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TextRunner()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(fs: Fragments): String

  7. def apply(specifications: SpecificationStructure*)(implicit args: Arguments = Arguments()): Seq[ExecutedSpecification]

    This method can be called directly from the console with the specs2.

    This method can be called directly from the console with the specs2.run object:

    > specs2.run(spec1, spec2) or > import specs2._ > run(spec1, spec2)

    If you want to pass specific arguments you can pass:

    > import specs2.args._ > specs2.run(spec1)(nocolor)

    Or you can set specific default with an implicit value:

    > import specs2.args._ > implicit val myargs = nocolor > specs2.run(spec1)

    Definition Classes
    ClassRunner
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def create[T <: AnyRef](className: String, classLoader: ClassLoader)(implicit m: ClassTag[T]): Either[Throwable, T]

    Definition Classes
    Classes
  11. def createObject[T <: AnyRef](className: String, printMessage: Boolean, printStackTrace: Boolean)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  12. def createObject[T <: AnyRef](className: String, printMessage: Boolean)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  13. def createObject[T <: AnyRef](className: String)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  14. def createSpecification(className: String, classLoader: ClassLoader = ...)(implicit args: Arguments = Arguments()): SpecificationStructure

    Attributes
    protected
    Definition Classes
    ClassRunner
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. val errorHandler: PartialFunction[Throwable, Unit]

    Attributes
    protected
    Definition Classes
    ClassRunner
  18. def exitSystem(executed: Seq[ExecutedSpecification]): Unit

    exit the system with a specific code:

    exit the system with a specific code:

    - 0 if all the specifications are successful - 1 if there are only failures - 100 if there is any error - 101 if one of them could not even be executed (this is represented by None)

    Definition Classes
    SystemExit
  19. def exitSystem(executed: Option[ExecutedSpecification]): Unit

    exit the system for one executed specification (None means that the specification could not be executed)

    exit the system for one executed specification (None means that the specification could not be executed)

    Definition Classes
    SystemExit
  20. def exitTheSystem(executed: Seq[Option[ExecutedSpecification]]): Unit

    Attributes
    protected
    Definition Classes
    SystemExit
  21. def exitWith(status: Int): Unit

    this method can be overriden for testing

    this method can be overriden for testing

    Attributes
    protected
    Definition Classes
    SystemExit
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def flush(): Unit

    Definition Classes
    ConsoleOutput → Output
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def main(arguments: Array[String]): Unit

    Definition Classes
    ClassRunner
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def output: String

    returns

    the output of one run

    Attributes
    protected
  32. def print(m: Any): Unit

    Definition Classes
    Output
  33. def printStackTrace(t: Throwable): Unit

    Definition Classes
    Output
  34. def printf(s: String, args: Any*): Unit

    Definition Classes
    ConsoleOutput → Output
  35. def println(m: Any): Unit

    Definition Classes
    Output
  36. lazy val reporter: TextReporter

    Definition Classes
    TextRunnerClassRunner
  37. def start(arguments: String*): Option[ExecutedSpecification]

    Definition Classes
    ClassRunner
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def tryToCreateObject[T <: AnyRef](className: String, printMessage: Boolean, printStackTrace: Boolean, loader: ClassLoader, parameter: Option[AnyRef])(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  41. def tryToCreateObjectEither[T <: AnyRef](className: String, loader: ClassLoader, parameter: Option[AnyRef])(implicit m: ClassTag[T]): Either[Throwable, T]

    Definition Classes
    Classes
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ClassRunner

Inherited from SystemExit

Inherited from ConsoleOutput

Inherited from Classes

Inherited from Output

Inherited from AnyRef

Inherited from Any

Ungrouped