junit

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2020 Flanksource This file is part of Flanksource build tools

Index

Constants

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": "unknown",
	"failure": "fail",
	"error":   "fail",
}

Functions

This section is empty.

Types

type TestResults

type TestResults struct {
	Suites  []junit.Suite
	Total   int
	Failed  int
	Skipped int
	Passed  int
}

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) 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) error

Jump to

Keyboard shortcuts

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