Class/Object

org.specs2.runner

ClassRunner

Related Docs: object ClassRunner | package runner

Permalink

class ClassRunner extends Classes with ConsoleOutput with SystemExit

This class can be used to executed a Specification in the Console by specifying its name as the first argument on the command line

See also

org.specs2.main.Arguments for other command line options

specs2.run

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

Instance Constructors

  1. new ClassRunner()

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(specifications: SpecificationStructure*)(implicit args: Arguments = Arguments()): Seq[ExecutedSpecification]

    Permalink

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

    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)

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected
  15. def exitSystem(executed: Seq[ExecutedSpecification]): Unit

    Permalink

    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
  16. def exitSystem(executed: Option[ExecutedSpecification]): Unit

    Permalink

    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
  17. def exitTheSystem(executed: Seq[Option[ExecutedSpecification]]): Unit

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

    Permalink

    this method can be overriden for testing

    this method can be overriden for testing

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

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

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

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

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

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

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def print(m: Any): Unit

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

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

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

    Permalink
    Definition Classes
    Output
  32. lazy val reporter: Reporter

    Permalink
  33. def start(arguments: String*): Option[ExecutedSpecification]

    Permalink
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

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

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

    Permalink
    Definition Classes
    Classes
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SystemExit

Inherited from ConsoleOutput

Inherited from Classes

Inherited from Output

Inherited from AnyRef

Inherited from Any

Ungrouped