class util::TestRunner

sys::Obj
  util::TestRunner

@Js

Source

TestRunner executes Test classes and reports success/failure.

isVerbose

Bool isVerbose

Source

Should tests be run in verbose mode

main

static Int main(Str[] args)

Source

Run with given command line arguments

onSetup

virtual Void onSetup(Test test)

Source

Callback to invoke setup

onTeardown

virtual Void onTeardown(Test test)

Source

Callback to invoke teardown

out

OutStream out := Env.cur().out

Source

Output stream for built-in reporting

printUsage

Void printUsage()

Source

Print usage

printVersion

Void printVersion()

Source

Print version

reportFailure

virtual Void reportFailure(Type type, Method method, Err err)

Source

Report the failure and exception raised

reportStart

virtual Void reportStart(Type type, Method method)

Source

Report the start of a test method

reportSuccess

virtual Void reportSuccess(Type type, Method method, Int verifies)

Source

Report the success and number of verifies

reportSummary

virtual Void reportSummary()

Source

Report summary of tests

runAll

virtual This runAll()

Source

Run on every installed pod

runMethod

virtual This runMethod(Type type, Method method)

Source

Run test method

runPod

virtual This runPod(Pod pod)

Source

Run all tests in given pod

runTarget

virtual This runTarget(Str target)

Source

Run target from an argument string

runTargets

virtual This runTargets(Str[] targets)

Source

Run list of targets from an argument string

runType

virtual This runType(Type type)

Source

Run all test methods on a given type