Documentation
¶
Overview ¶
Package jsonl provides functionality for atomically appending test execution results to a JSON-Lines ledger file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProperty ¶
func AddProperty(test, name, value string)
AddProperty records the name-value property if it is one recorded in the ledger: the test plan ID, the git commit, or the git clean status. Note: test parameter is ignored as these properties are suite-scoped (last write wins).
func AppendResult ¶
func AppendResult(path string, status opb.TestStatus, details string) error
AppendResult creates a TestResult with the resolved plan ID, git commit and dirty state of the test code, current timestamp, status, and details, and atomically appends it to the specified JSON-Lines file.
func RecordResult ¶
RecordResult evaluates the raw test execution outcome and writes the record to disk.
func ResolvePlanID ¶
func ResolvePlanID() string
ResolvePlanID resolves the test plan ID from explicitly configured values (such as ondatra.Report().AddSuiteProperty("test.plan_id", ...)), or falls back to the executable base name.
Types ¶
This section is empty.