test

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package test provides test runner commands (jest, pytest, vitest, playwright).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseState

type ParseState int
const (
	StateHeader ParseState = iota
	StateTestProgress
	StateFailures
	StateSummary
)

type RspecExample

type RspecExample struct {
	FullDescription string          `json:"full_description"`
	Status          string          `json:"status"`
	FilePath        string          `json:"file_path"`
	LineNumber      int             `json:"line_number"`
	Exception       *RspecException `json:"exception"`
}

type RspecException

type RspecException struct {
	Class     string   `json:"class"`
	Message   string   `json:"message"`
	Backtrace []string `json:"backtrace"`
}

type RspecOutput

type RspecOutput struct {
	Examples []RspecExample `json:"examples"`
	Summary  RspecSummary   `json:"summary"`
}

type RspecSummary

type RspecSummary struct {
	Duration                     float64 `json:"duration"`
	ExampleCount                 int     `json:"example_count"`
	FailureCount                 int     `json:"failure_count"`
	PendingCount                 int     `json:"pending_count"`
	ErrorsOutsideOfExamplesCount int     `json:"errors_outside_of_examples_count"`
}

type TestSuite

type TestSuite struct {
	Package     string
	Passed      int
	Failed      int
	Skipped     int
	Duration    time.Duration
	FailedTests []string
}

Jump to

Keyboard shortcuts

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