type

TestRunner

src @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

src Bool isVerbose

Should tests be run in verbose mode

main

src static Int main(Str[] args)

Run with given command line arguments

onSetup

src virtual Void onSetup(Test test)

Callback to invoke setup

onTeardown

src virtual Void onTeardown(Test test)

Callback to invoke teardown

out

src OutStream out := Env.cur().out

Output stream for built-in reporting

printUsage

src Void printUsage()

Print usage

printVersion

src Void printVersion()

Print version

reportFailure

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

Report the failure and exception raised

reportStart

src virtual Void reportStart(Type type, Method method)

Report the start of a test method

reportSuccess

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

Report the success and number of verifies

reportSummary

src virtual Void reportSummary()

Report summary of tests

runAll

src virtual This runAll()

Run on every installed pod

runMethod

src virtual This runMethod(Type type, Method method)

Run test method

runPod

src virtual This runPod(Pod pod)

Run all tests in given pod

runTarget

src virtual This runTarget(Str target)

Run target from an argument string

runTargets

src virtual This runTargets(Str[] targets)

Run list of targets from an argument string

runType

src virtual This runType(Type type)

Run all test methods on a given type