- Index
- »
- fan.util
- »
- TestRunner
TestRunner
@Js
class TestRunner : Obj
TestRunner executes Test classes and reports success/failure.
Should tests be run in verbose mode
Output stream for built-in reporting
Report summary of tests
Print version
Run all test methods on a given type
Run with given command line arguments
Report the start of a test method
Report the success and number of verifies
Print usage
Run target from an argument string
Callback to invoke teardown
Run list of targets from an argument string
Callback to invoke setup
Run all tests in given pod
Run test method
Run on every installed pod
Report the failure and exception raised
Bool : isVerbose
Should tests be run in verbose mode
static Int main(Str[] args)
Run with given command line arguments
virtual Void onSetup(Test test)
Callback to invoke setup
virtual Void onTeardown(Test test)
Callback to invoke teardown
OutStream : out
Output stream for built-in reporting
Void printUsage()
Print usage
Void printVersion()
Print version
virtual Void reportFailure(Type type, Method method, Err err)
Report the failure and exception raised
virtual Void reportStart(Type type, Method method)
Report the start of a test method
virtual Void reportSuccess(Type type, Method method, Int verifies)
Report the success and number of verifies
virtual Void reportSummary()
Report summary of tests
virtual This runAll()
Run on every installed pod
virtual This runMethod(Type type, Method method)
Run test method
virtual This runPod(Pod pod)
Run all tests in given pod
virtual This runTarget(Str target)
Run target from an argument string
virtual This runTargets(Str[] targets)
Run list of targets from an argument string
virtual This runType(Type type)
Run all test methods on a given type