jsonl

package
v0.14.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

func RecordResult(path string, rerr error, exitCode *int) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL