Page MenuHomePhabricator

Report
Updated 349 Days AgoPublic

This is for Goldilocks 2.0. If you're using Goldilocks 1.0 (part of PawLIB), see the official documentation at https://docs.mousepawmedia.com/pawlib

A Report contains one or more Expect statements that have been executed (initialized), and which store their own individual outcomes. These are stored sequentially, along with data about which run of the connected Test they failed on. A Report is created by the Runner.

A Report should be an iterable queue that offers a signal for when a new message is added.

log(expect)

This function accepts a single Except object (expect), storing its outcome data in the Report object.

log(measurement)

This function logs the measurement data from a Benchmark.

NOTE: Do we need to define a Measurement object?

lap()

After each test run, the Runner must call lap() on the Report it is building. This indicates that one run of the test is complete, and the subsequent calls to log() should be associated with the next run.

Last Author
tfu
Last Edited
Aug 30 2021, 12:12 PM