lib

package
v0.0.0-...-c8eb28a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PASS = "pass"
	FAIL = "fail"
	SKIP = "skip"
)

Variables

This section is empty.

Functions

func GenerateHTML

func GenerateHTML(templateStr string, summary *TestSummary) (string, error)

Types

type Results

type Results map[string][]*Test

type Test

type Test struct {
	PackageName string `json:"package_name"`
	TestName    string `json:"test_name"`
	Time        int    `json:"time"`
	Output      string `json:"output"`
}

type TestSummary

type TestSummary struct {
	TotalTests  int     `json:"total_tests"`
	BuildErrors string  `json:"build_errors"`
	Results     Results `json:"results"`
}

func Parse

func Parse(stdoutReader io.Reader, stderrReader io.Reader) (*TestSummary, error)

Jump to

Keyboard shortcuts

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