Runner

object Runner

reusable actions for Runners

class Object
trait Matchable
class Any
Runner.type

Value members

Concrete methods

def createCustomInstance[T <: AnyRef](args: Arguments, loader: ClassLoader, name: String, failureMessage: String => String, noRequiredMessage: String)(implicit m: ClassTag[T]): Operation[Option[T]]

create a custom instance

create a custom instance

def createHtmlPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]
def createJUnitXmlPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]
def createMarkdownPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]
def createNotifierPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]

create a custom printer from a Notifier instance passed in arguments

create a custom printer from a Notifier instance passed in arguments

def createPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]

create a custom printer from a Name passed in arguments

create a custom printer from a Name passed in arguments

def createPrinterInstance(args: Arguments, loader: ClassLoader, name: PrinterName, className: String, failureMessage: String, noRequiredMessage: String): Operation[Option[Printer]]

create a built-in specs2 printer

create a built-in specs2 printer

def createTextPrinter(args: Arguments, loader: ClassLoader): Operation[Option[Printer]]
def execute(action: Action[Stats], arguments: Arguments, exit: Boolean)(env: Env): Unit

Execute some actions and exit with the proper code if 'exit' is true

Execute some actions and exit with the proper code if 'exit' is true

def exitSystem(status: Int, exit: Boolean): Unit

Exit the JVM with a given status

Exit the JVM with a given status

def logThrowable(t: Throwable, arguments: Arguments)(print: String => Name[Unit]): Name[Unit]

Use the console logging to log exceptions

Use the console logging to log exceptions

def logUserWarnings(warnings: List[String])(print: String => Name[Unit]): Name[Unit]

Log the issues which might have been caused by the user

Log the issues which might have been caused by the user

def noInstance[T](message: String, t: Throwable, verbose: Boolean): Operation[Option[T]]

print a message if a class can not be instantiated

print a message if a class can not be instantiated

def noInstance[T](message: String): Operation[Option[T]]

print a message if a class can not be instantiated

print a message if a class can not be instantiated

def noInstance[T](message: String, verbose: Boolean): Operation[Option[T]]

print a message if a class can not be instantiated

print a message if a class can not be instantiated

def runSpecStructure(specStructure: SpecStructure, env: Env, loader: ClassLoader, printers: List[Printer]): Action[Stats]

Run a spec structure and its linked specifications if "all" is set on the command line

Run a spec structure and its linked specifications if "all" is set on the command line