classjig::Runner

sys::Obj
  jig::Runner : jig::FantListener

Runner spawns fant, parses its output, and renders a live status bar with results printed above it. Failures get one line as they happen, with full output and trace held for the summary.

make

Source

new make(Str[] targets, Str[] tests, Bool quiet := false, Bool? tty := null, OutStream out := Env.cur().out())

Create runner; in quiet mode only failures are printed, otherwise a pass/fail line is printed for each test type grouped by pod.

onFail

Source

virtual override Void onFail(Str qname, Str[] output, Str[] trace)

onPass

Source

virtual override Void onPass(Str qname, Int verifies)

onStart

Source

virtual override Void onStart(Str qname)

onStray

Source

virtual override Void onStray(Str line)

onSummary

Source

virtual override Void onSummary(Int types, Int methods, Int verifies)

passthrough

Source

static Int passthrough(Str flag, Str[] targets)

Run fant for -es or -js with output passed through as-is.

run

Source

Int run()

Run tests and return exit code.

trimTrace

Source

static Str[] trimTrace(Str[] lines)

Strip test harness frames (verify internals, reflection, TestRunner) from a trace, keeping messages and causes.