Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct { Name string `json:"name"` Methods []*TestMethod `json:"methods"` }
type Exception ¶
type Exception struct { Class string `json:"class"` Message string `json:"message"` FullStacktrace string `json:"fullStacktrace"` }
func NewException ¶
type NgParser ¶
type NgParser struct { }
type NgStatus ¶
type NgStatus string
func (NgStatus) ToStatus ¶
func (s NgStatus) ToStatus() apistructs.TestStatus
type NgTestResult ¶
type NgTestResult struct { Skipped int `json:"skipped" yaml:"skipped"` Failed int `json:"failed" yaml:"failed"` Ignored int `json:"ignored"` Total int `json:"total"` Passed int `json:"passed"` ReporterOutput *ReporterOutput `json:"output"` Suites []*Suite `json:"suite"` }
func Ingest ¶
func Ingest(data []byte) (*NgTestResult, error)
Ingest will parse the given XML data and return a slice of all contained JUnit test suite definitions.
func IngestFile ¶
func IngestFile(filename string) (*NgTestResult, error)
IngestFile will parse the given XML file and return a slice of all contained JUnit test suite definitions.
func IngestFiles ¶
func IngestFiles(filenames []string) ([]*NgTestResult, error)
IngestFiles will parse the given XML files and return a slice of all contained JUnit test suite definitions.
func New ¶
func New(skipped, failed, ignored, passed, total int) *NgTestResult
type ReporterOutput ¶
type ReporterOutput struct {
Lines []string `json:"line" xml:"line"`
}
func NewReporterOutput ¶
func NewReporterOutput() *ReporterOutput
func (*ReporterOutput) String ¶
func (o *ReporterOutput) String() string
type Suite ¶
type Test ¶
type TestMethod ¶
type TestMethod struct { Status NgStatus `json:"status"` Signature string `json:"signature"` Name string `json:"name"` IsConfig bool `json:"isConfig"` Duration time.Duration `json:"duration"` StartedAt string `json:"startedAt"` FinishedAt string `json:"finishedAt"` DataProvider string `json:"dataProvider"` ReporterOutput *ReporterOutput `json:"output"` Params []*Param `json:"params"` Exception *Exception `json:"exception"` }
func NewTestMethod ¶
Click to show internal directories.
Click to hide internal directories.