report

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package report renders a self-contained HTML report of an `apic run` or an `apic test`: one file, inline CSS, no JavaScript needed to read it, light and dark through prefers-color-scheme. It is the artifact to attach to a CI run or send to someone who does not read JUnit.

The output is deterministic for a given input: no random ids, and the time comes from the caller, so a report can be golden-tested.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Features

func Features(w io.Writer, meta Meta, cucumber []byte) error

Features writes the HTML report of an `apic test` from its cucumber JSON report, which is already masked under --redact.

func Run

func Run(w io.Writer, meta Meta, results []*runner.Result) error

Run writes the HTML report of an `apic run`.

Types

type Meta

type Meta struct {
	Title    string    // "apic run" or "apic test"
	Version  string    // apic version
	Env      string    // environment in effect, "" for none
	Time     time.Time // when the run started; zero means now
	Redacted bool      // --redact was in force
	Project  string    // project root, for the header
}

Meta is what the report says about the run as a whole.

Jump to

Keyboard shortcuts

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