type

TestRunner

@Js
class TestRunner : Obj

TestRunner executes Test classes and reports success/failure.

fields

isVerbose

Should tests be run in verbose mode

out

Output stream for built-in reporting

methods

main

Run with given command line arguments

onSetup

Callback to invoke setup

onTeardown

Callback to invoke teardown

printUsage

Print usage

printVersion

Print version

reportFailure

Report the failure and exception raised

reportStart

Report the start of a test method

reportSuccess

Report the success and number of verifies

reportSummary

Report summary of tests

runAll

Run on every installed pod

runMethod

Run test method

runPod

Run all tests in given pod

runTarget

Run target from an argument string

runTargets

Run list of targets from an argument string

runType

Run all test methods on a given type

Slot Details

isVerbose

Bool isVerbose

Should tests be run in verbose mode

main

static Int main(Str[] args)

Run with given command line arguments

onSetup

virtual Void onSetup(Test test)

Callback to invoke setup

onTeardown

virtual Void onTeardown(Test test)

Callback to invoke teardown

out

OutStream out := Env.cur().out

Output stream for built-in reporting

printUsage

Void printUsage()

Print usage

printVersion

Void printVersion()

Print version

reportFailure

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

Report the failure and exception raised

reportStart

virtual Void reportStart(Type type, Method method)

Report the start of a test method

reportSuccess

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

Report the success and number of verifies

reportSummary

virtual Void reportSummary()

Report summary of tests

runAll

virtual This runAll()

Run on every installed pod

runMethod

virtual This runMethod(Type type, Method method)

Run test method

runPod

virtual This runPod(Pod pod)

Run all tests in given pod

runTarget

virtual This runTarget(Str target)

Run target from an argument string

runTargets

virtual This runTargets(Str[] targets)

Run list of targets from an argument string

runType

virtual This runType(Type type)

Run all test methods on a given type