← index

TestResult

inherits Object · defined at test.qn:340

Immutable summary of one Test's run: its assertion results plus assertion-time and wall-time totals. Built by Test#run:, consumed by reporters and by [Test]Main's overall pass/fail verdict.

Instance methods

assertions

Every TestAssertionResult the run recorded, in order.

test.qn:357

elapsed

The sum of the assertions' check times, in microseconds.

test.qn:363

failures

The assertion results that failed.

test.qn:361

init:Test

Internal: store the fields captured by new:'s builder block; Test#run: is the constructor's call site.

test.qn:343

name

The test's name.

test.qn:355

passes

The assertion results that passed.

test.qn:359

s

Debug rendering: test, name, timing and the assertion list.

test.qn:368

test

The Test that produced this result.

test.qn:352

wallElapsed

Wall-clock time of the whole test method run, in microseconds.

test.qn:365