test

package
v0.0.0-...-5ae9364 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	FileName string `json:"filename"`
	FileSize int    `json:"filesize"`
}

FileInfo ...

type Result

type Result struct {
	Name       string
	XMLContent []byte
	ImagePaths []string
	StepInfo   models.TestResultStepInfo
}

Result ...

type Results

type Results []Result

Results ...

func ParseTestResults

func ParseTestResults(testsRootDir string) (results Results, err error)

ParseTestResults ...

func (Results) Upload

func (results Results) Upload(apiToken, endpointBaseURL, appSlug, buildSlug string) error

Upload ...

type UploadRequest

type UploadRequest struct {
	Name   string                    `json:"name"`
	Step   models.TestResultStepInfo `json:"step_info"`
	Assets []FileInfo                `json:"assets"`
	FileInfo
}

UploadRequest ...

type UploadResponse

type UploadResponse struct {
	ID     string      `json:"id"`
	Assets []UploadURL `json:"assets"`
	UploadURL
}

UploadResponse ...

type UploadURL

type UploadURL struct {
	FileName string `json:"filename"`
	URL      string `json:"upload_url"`
}

UploadURL ...

Directories

Path Synopsis
Package converters contains the interface that is required to be a package a test result converter.
Package converters contains the interface that is required to be a package a test result converter.

Jump to

Keyboard shortcuts

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