backends

package
v0.0.0-...-e7f739d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 25 Imported by: 0

README

testres-backends

is a library to import test results.

Building

$ go get ./...
$ go test -v ./...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(filename string, url string) error

func SyncAzureDevOps

func SyncAzureDevOps(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

Using custom http client: https://github.com/microsoft/azure-devops-go-api/issues/52

func SyncCircleCI

func SyncCircleCI(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

func SyncCirrusCI

func SyncCirrusCI(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

func SyncGitLab

func SyncGitLab(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

func SyncJenkins

func SyncJenkins(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

func SyncTeamCity

func SyncTeamCity(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

func SyncTravisCI

func SyncTravisCI(client *http.Client, b *Backend, buildsNumber int) (*[]formats.TestResult, error)

Types

type Artifact

type Artifact struct {
	Path string
}

type Backend

type Backend struct {
	Name      string
	Base      string
	Project   string
	Branch    string
	Username  string
	Secret    string
	Pipeline  string
	Type      string
	Artifacts []Artifact
}

func (*Backend) GetTestResults

func (b *Backend) GetTestResults(buildsNumber int) (*[]formats.TestResult, error)

Jump to

Keyboard shortcuts

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