reporting

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(spec string, records []types.IterationRecord, opts Options) error

Write parses the reporting spec and generates reports in the requested formats. Spec format: "junit:path/to/report.xml,html:path/to/report.html"

func WriteHTML

func WriteHTML(records []types.IterationRecord, reportPath string, options Options) error

WriteHTML generates a self-contained HTML report with FuncMap-driven template functions.

func WriteJUnit

func WriteJUnit(records []types.IterationRecord, path string, opts Options) error

WriteJUnit generates a JUnit XML report from iteration records. Returns an error if records is nil or if XML marshaling fails.

func WriteMultiDevice

func WriteMultiDevice(spec string, results []types.MultiDeviceResult, opts Options) error

WriteMultiDevice handles reports for multiple device runs.

Types

type Options

type Options struct {
	SuiteName   string
	DeviceID    string
	StartTime   time.Time
	EndTime     time.Time
	CacheHits   int
	CacheMisses int
	CacheRate   float64
}

Options contains metadata for report generation.

Jump to

Keyboard shortcuts

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