reporter

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailedTests

func FailedTests(groups []*spec.TestGroup)

FailedTests outputs the report of failed tests.

func JUnitReport

func JUnitReport(groups []*spec.TestGroup, filePath string) error

JUnitReport writes a file which contains the JUnit report generated by test result of h2spec.

func PrintFailedClientTests added in v2.1.0

func PrintFailedClientTests(group *spec.ClientTestGroup)

FailedTests outputs the report of failed tests.

func PrintSummaryForClient added in v2.1.0

func PrintSummaryForClient(group *spec.ClientTestGroup)

func Summary

func Summary(groups []*spec.TestGroup)

Summary outputs the summary of test result that includes the number of passsed, skipped and failed.

func SummaryForClient added in v2.1.0

func SummaryForClient(group *spec.ClientTestGroup) string

Summary outputs the summary of test result that includes the number of passsed, skipped and failed.

Types

type JUnitError

type JUnitError struct {
	XMLName xml.Name `xml:"error"`
	Content string   `xml:",innerxml"`
}

JUnitSkipped represents the error element of JUnit XML format.

type JUnitFailure

type JUnitFailure struct {
	XMLName xml.Name `xml:"failure"`
	Content string   `xml:",innerxml"`
}

JUnitFailure represents the failure element of JUnit XML format.

type JUnitSkipped

type JUnitSkipped struct {
	XMLName xml.Name `xml:"skipped"`
	Content string   `xml:",innerxml"`
}

JUnitSkipped represents the skipped element of JUnit XML format.

type JUnitTestCase

type JUnitTestCase struct {
	XMLName   xml.Name      `xml:"testcase"`
	Package   string        `xml:"package,attr"`
	ClassName string        `xml:"classname,attr"`
	Time      string        `xml:"time,attr"`
	Failure   *JUnitFailure `xml:"failure"`
	Skipped   *JUnitSkipped `xml:"skipped"`
	Error     *JUnitError   `xml:"error"`
}

JUnitTestCase represents the testcase element of JUnit XML format.

type JUnitTestReport

type JUnitTestReport struct {
	XMLName    xml.Name          `xml:"testsuites"`
	TestSuites []*JUnitTestSuite `xml:"testsuite"`
}

JUnitReport represents the JUnit XML format.

type JUnitTestSuite

type JUnitTestSuite struct {
	XMLName   xml.Name         `xml:"testsuite"`
	Name      string           `xml:"name,attr"`
	Package   string           `xml:"package,attr"`
	ID        string           `xml:"id,attr"`
	Tests     int              `xml:"tests,attr"`
	Skipped   int              `xml:"skipped,attr"`
	Failures  int              `xml:"failures,attr"`
	Errors    int              `xml:"errors,attr"`
	TestCases []*JUnitTestCase `xml:"testcase"`
}

JUnitTestSuite represents the testsuite element of JUnit XML format.

type WebReportServer added in v2.1.0

type WebReportServer struct {
	http.Server
	// contains filtered or unexported fields
}

func NewWebReportServer added in v2.1.0

func NewWebReportServer(config *config.Config, spec *spec.ClientTestGroup) *WebReportServer

func (*WebReportServer) RunForever added in v2.1.0

func (server *WebReportServer) RunForever() error

Jump to

Keyboard shortcuts

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