qe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package qe defines semantic types for quality-engineering findings — failed end-to-end tests and broken user journeys — and projects them into the domain-neutral findingspec.Finding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description,omitempty"`
	// Journey is the identifier of the user journey under test, if any.
	Journey string `json:"journey,omitempty"`
	// Step is the failing step within the test or journey.
	Step string `json:"step,omitempty"`
	// Expected and Actual capture the assertion mismatch.
	Expected string `json:"expected,omitempty"`
	Actual   string `json:"actual,omitempty"`
	// Severity is the impact of the failure; defaults to High when unset,
	// since a broken journey typically blocks users.
	Severity findingspec.Severity `json:"severity,omitempty"`

	Location    *findingspec.Location    `json:"location,omitempty"`
	Evidence    []findingspec.Evidence   `json:"evidence,omitempty"`
	Remediation *findingspec.Remediation `json:"remediation,omitempty"`
	Status      findingspec.Status       `json:"status,omitempty"`
	DetectedAt  *time.Time               `json:"detectedAt,omitempty"`
}

Failure is a quality-engineering finding: a test assertion or user-journey step that did not behave as expected.

func (Failure) ToFinding

func (f Failure) ToFinding() findingspec.Finding

ToFinding projects the failure into a domain-neutral findingspec.Finding in the qe domain. When Severity is unset it defaults to High. The journey and step identify the finding's RuleID.

Jump to

Keyboard shortcuts

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