Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNUnitTestReport ¶
func GenerateNUnitTestReport(result *TestResults, path string) (err error)
Types ¶
type Categories ¶
type Categories struct {
Categories []*Category `xml:"category"`
}
type Environment ¶
type Environment struct { XMLName xml.Name `xl:"environment"` NUnitVersion string `xml:"nunit-version,attr"` ClrVersion string `xml:"clr-version,attr"` OsVersion string `xml:"os-version,attr"` Platform string `xml:"platform,attr"` Cwd string `xml:"cwd,attr"` MachineName string `xml:"machine-name,attr"` User string `xml:"user,attr"` UserDomain string `xml:"user-domain,attr"` }
type Failure ¶
type Failure struct { XMLName xml.Name `xml:"failure"` Message *Message `xml:"message"` StackTrace *StackTrace `xml:"stack-trace"` }
type Properties ¶
type StackTrace ¶
type TestCase ¶
type TestCase struct { XMLName xml.Name `xml:"test-case"` Name string `xml:"name,attr"` Description string `xml:"description,attr"` Success string `xml:"success,attr"` Time float64 `xml:"time.attr"` Executed bool `xml:"executed,attr"` Asserts int `xml:"asserts,attr"` Categories *Categories `xml:"categories"` Properties *Properties `xml:"properties"` Failure *Failure `xml:"failure"` Reason *Reason `xml:"reason"` }
type TestResults ¶
type TestResults struct { XMLName xml.Name `xml:"test-results"` Name string `xml:"name,attr"` Total int `xml:"total,attr"` Errors int `xml:"errors,attr"` Failures int `xml:"failures,attr"` NotRun int `xml:"not-run,attr"` Ignored int `xml:"ignored,attr"` Skipped int `xml:"skipped,attr"` Invalid int `xml:"invalid,attr"` Environment *Environment `xml:"environment"` TestSuite *TestSuite `xml:"test-suite"` Time float64 TestCases []*TestCase }
func NewTestResults ¶
func NewTestResults() *TestResults
func Read ¶
func Read(f string) (results *TestResults, err error)
func (*TestResults) Merge ¶
func (t *TestResults) Merge(another *TestResults)
type TestSuite ¶
type TestSuite struct { XMLName xml.Name `xml:"test-suite"` Name string `xml:"name,attr"` Executed bool `xml:"executed,attr"` Success bool `xml:"success,attr"` Time float64 `xml:"time,attr"` Asserts int `xml:"asserts,attr"` Categories *Categories `xml:"categories"` Properties *Properties `xml:"properties"` Failure *Failure `xml:"failure"` Reason *Reason `xml:"reason"` TestSuites []*TestSuite `xml:"results>test-suite"` TestCases []*TestCase `xml:"results>test-case"` }
func (*TestSuite) InternalTestCases ¶
Click to show internal directories.
Click to hide internal directories.