beater

package
v0.0.0-...-8884b58 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of testingbeat.

Types

type Failure

type Failure struct {
	Type  string
	Title string
	Body  string
}

type JunitFailure

type JunitFailure struct {
	XMLName xml.Name `xml:"failure"`
	Message string   `xml:"message,attr"`
	Type    string   `xml:"type,attr"`
	Body    string   `xml:",chardata"`
}

type JunitTestSuite

type JunitTestSuite struct {
	XMLName   xml.Name        `xml:"testsuite"`
	Name      string          `xml:"name,attr"`
	Duration  float64         `xml:"time,attr"`
	StdErr    string          `xml:"system-err"`
	StdOut    string          `xml:"system-out"`
	TestCases []JunitTestcase `xml:"testcase"`
}

type JunitTestcase

type JunitTestcase struct {
	XMLName   xml.Name     `xml:"testcase"`
	Classname string       `xml:"classname,attr"`
	Name      string       `xml:"name,attr"`
	Duration  float64      `xml:"time,attr"`
	Skipped   *struct{}    `xml:"skipped"`
	Failure   JunitFailure `xml:"failure"`
}

type Metadata

type Metadata struct {
	Key   string
	Value string
}

type Suite

type Suite struct {
	Name     string
	Duration float64
	StdOut   string
	StdErr   string
	Metadata []Metadata
}

type TestResult

type TestResult struct {
	Suite     Suite
	Name      string
	Classname string
	Duration  float64
	Skipped   bool
	Failed    bool
	Success   bool
	State     string
	Failure   Failure
}

type Testingbeat

type Testingbeat struct {
	// contains filtered or unexported fields
}

Testingbeat configuration.

func (*Testingbeat) Run

func (bt *Testingbeat) Run(b *beat.Beat) error

Run starts testingbeat.

func (*Testingbeat) Stop

func (bt *Testingbeat) Stop()

Stop stops testingbeat.

Jump to

Keyboard shortcuts

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