run

object run extends ClassRunner

Run a specification from the command-line with specs2.run

class Object
trait Matchable
class Any
run.type

Value members

Concrete methods

def apply(specifications: SpecificationStructure*)(implicit arguments: Arguments): Unit

Run one or more specifications with specs2.run(spec1, spec2) from a terminal

Run one or more specifications with specs2.run(spec1, spec2) from a terminal

def main(args: Array[String]): Unit

main method for the command line

main method for the command line

Inherited methods

def createPrinters(args: Arguments, loader: ClassLoader): Operation[List[Printer]]

accepted printers

accepted printers

Inherited from:
ClassRunner
def createReporter(args: Arguments, loader: ClassLoader): Operation[Reporter]

custom or default reporter

custom or default reporter

Inherited from:
ClassRunner
def createSpecification(className: String, classLoader: ClassLoader, env: Option[Env]): Operation[SpecificationStructure]

create the specification from the class name

create the specification from the class name

Inherited from:
ClassRunner
def report(env: Env): SpecificationStructure => Action[Stats]

report the specification

report the specification

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

run the specification, the first argument is expected to be the specification name

run the specification, the first argument is expected to be the specification name

Inherited from:
ClassRunner
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

Inherited from:
ClassRunner