junit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	AnnotationWarning = "warning"
	AnnotationNotice  = "notice"
	AnnotationFailure = "failure"
)

Functions

This section is empty.

Types

type TestResults

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

func ParseJunitResults

func ParseJunitResults(files ...string) (*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

Jump to

Keyboard shortcuts

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