jsonreport

package
v0.0.0-...-355f60d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(serviceAccount string) error

Initialize wraps prow's init, which must be called before any other prow functions are used.

Types

type Report

type Report struct {
	Repo  string   `json:"repo"`
	Flaky []string `json:"flaky"`
}

Report contains concise information about current flaky tests in a given repo

func CreateReportForRepo

func CreateReportForRepo(repo string, flaky []string, writeFile bool) (*Report, error)

CreateReportForRepo generates a flaky report for a given repository, and optionally writes it to disk.

func GetFlakyTestReport

func GetFlakyTestReport(repo string, buildID int) ([]Report, error)

GetFlakyTestReport collects flaky test reports from the given buildID and repo. Use repo = "" to get reports from all repositories, and buildID = -1 to get the most recent report

Jump to

Keyboard shortcuts

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