Documentation ¶
Overview ¶
Copyright © 2020 Flanksource This file is part of Flanksource build tools
Index ¶
- Constants
- Variables
- func GithubWorkflowName(t junit.Test, suite junit.Suite) string
- func TestName(t junit.Test) string
- type TestResults
- func (results TestResults) GenerateGithubWorkflowCommands() string
- func (results TestResults) GenerateMarkdown() string
- func (results TestResults) GetGithubAnnotations() []*github.CheckRunAnnotation
- func (results TestResults) String() string
- func (results TestResults) Success() bool
- func (results TestResults) UploadToTesults(token string, failOnSkip bool) error
Constants ¶
View Source
const GH_DEBUG = "::debug %s::%s\n"
View Source
const GH_ERROR = "::error %s::%s\n"
View Source
const GH_SKIP = "::debug %s::SKIPPED%s\n"
View Source
const GH_WARNING = "::warning %s %s::%s\n"
View Source
const MAX_ANNOTATIONS = 50
Variables ¶
View Source
var ( AnnotationWarning = "warning" AnnotationNotice = "notice" AnnotationFailure = "failure" )
View Source
var RESULT_MAP = map[string]string{
"passed": "pass",
"skipped-fail": "fail",
"skipped-pass": "pass",
"failed": "fail",
"error": "fail",
}
Functions ¶
func GithubWorkflowName ¶ added in v0.11.8
func GithubWorkflowName(t junit.Test, suite junit.Suite) string
Types ¶
type TestResults ¶
func ParseJunitResultFiles ¶ added in v0.9.10
func ParseJunitResultFiles(files ...string) (*TestResults, error)
func ParseJunitResultStrings ¶ added in v0.9.10
func ParseJunitResultStrings(resultStrings ...string) (*TestResults, error)
func ParseJunitResults ¶
func ParseJunitResults(results ...[]byte) (*TestResults, error)
func (TestResults) GenerateGithubWorkflowCommands ¶ added in v0.11.8
func (results TestResults) GenerateGithubWorkflowCommands() string
func (TestResults) GenerateMarkdown ¶
func (results TestResults) GenerateMarkdown() string
func (TestResults) GetGithubAnnotations ¶
func (results TestResults) GetGithubAnnotations() []*github.CheckRunAnnotation
func (TestResults) String ¶
func (results TestResults) String() string
func (TestResults) Success ¶
func (results TestResults) Success() bool
func (TestResults) UploadToTesults ¶ added in v0.11.2
func (results TestResults) UploadToTesults(token string, failOnSkip bool) error
Click to show internal directories.
Click to hide internal directories.