report

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePreviousWithNew

func ComparePreviousWithNew(previous []commons.Tests, new []commons.Tests) []commons.Tests

ComparePreviousWithNew compares the previous test results with the new ones and returns the difference.

func CountChecksPassedOverall

func CountChecksPassedOverall(checks []commons.Check) (int, int)

CountChecksPassedOverall counts the number of passed and total checks.

func ExitCode

func ExitCode(checks []commons.Tests) int

ExitCode returns the exit code for the CI based on the test results.

func GenerateReadme

func GenerateReadme(filename string) string

func IsIgnored

func IsIgnored(c *commons.Config, r commons.Result, check commons.Check) bool

IsIgnored checks if a result is ignored based on the configuration.

func PrettyPrintChecks

func PrettyPrintChecks(checks []commons.Tests, c *commons.Config)

PrettyPrintChecks prints the checks in a human-readable format.

func ReadPreviousResults

func ReadPreviousResults() []commons.Tests

ReadPreviousResults reads the previous test results from the results.yaml file.

func RemoveIgnored

func RemoveIgnored(c *commons.Config, tests []commons.Tests) []commons.Tests

RemoveIgnored removes ignored checks from the given tests based on the configuration.

func WriteChecksToFile

func WriteChecksToFile(checks []commons.Tests, c *commons.Config)

WriteChecksToFile writes the test results to the results.yaml file.

func WriteReadme

func WriteReadme(readmeFile string, resultFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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