TextRunner

org.specs2.runner.TextRunner
object TextRunner extends ClassRunnerMain

Test runner to simulate a console run

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TextRunner.type

Members list

Value members

Concrete methods

def run(spec: SpecificationStructure, arguments: Arguments)(env: Env): PrinterLogger & StringOutput
def runFuture(spec: SpecificationStructure, arguments: Arguments)(env: Env): Future[PrinterLogger & StringOutput]

this method returns a Future and does not try to instantiate any class so it is suitable for ScalaJS

this method returns a Future and does not try to instantiate any class so it is suitable for ScalaJS

Attributes

Inherited methods

def createClassRunner(env: Env): Operation[ClassRunner]

Create a ClassRunner from the default environment containing the command line arguments

Create a ClassRunner from the default environment containing the command line arguments

Attributes

Inherited from:
ClassRunnerMain
def run(args: Array[String], exit: Boolean): Unit

run the specification, the first argument is expected to be the specification name The class runner expects the first command-line argument to be the class name of a specification to execute

run the specification, the first argument is expected to be the specification name The class runner expects the first command-line argument to be the class name of a specification to execute

Attributes

Inherited from:
ClassRunnerMain
def run(args: Array[String]): Unit

run a specification but don't exit with System.exit

run a specification but don't exit with System.exit

Attributes

Inherited from:
ClassRunnerMain