Documentation ¶
Index ¶
- type JSONReporter
- func (r *JSONReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
- func (r *JSONReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
- func (r *JSONReporter) SpecDidComplete(specSummary *types.SpecSummary)
- func (r *JSONReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
- func (r *JSONReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
- func (r *JSONReporter) SpecWillRun(specSummary *types.SpecSummary)
- type JSONTestCase
- type JSONTestSuite
- type SpecResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONReporter ¶
type JSONReporter struct {
// contains filtered or unexported fields
}
func NewJSONReporter ¶
func NewJSONReporter(filename string) *JSONReporter
func (*JSONReporter) AfterSuiteDidRun ¶
func (r *JSONReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
func (*JSONReporter) BeforeSuiteDidRun ¶
func (r *JSONReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
func (*JSONReporter) SpecDidComplete ¶
func (r *JSONReporter) SpecDidComplete(specSummary *types.SpecSummary)
func (*JSONReporter) SpecSuiteDidEnd ¶
func (r *JSONReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
func (*JSONReporter) SpecSuiteWillBegin ¶
func (r *JSONReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
func (*JSONReporter) SpecWillRun ¶
func (r *JSONReporter) SpecWillRun(specSummary *types.SpecSummary)
type JSONTestCase ¶
type JSONTestCase struct { Name string `json:"name"` Message string `json:"message,omitempty"` Result SpecResult `json:"result"` Time float64 `json:"time"` SystemOut string `json:"systemOut,omitempty"` Location string `json:"location,omitempty"` ComponentLocation string `json:"componentLocation,omitempty"` }
type JSONTestSuite ¶
type SpecResult ¶
type SpecResult string
const ( SpecResultFailed SpecResult = "failed" SpecResultPassed SpecResult = "passed" SpecResultSkipped SpecResult = "skipped" SpecResultPending SpecResult = "pending" SpecResultTimeout SpecResult = "timeout" SpecResultPanicked SpecResult = "panicked" SpecResultInvalid SpecResult = "invalid" )
Click to show internal directories.
Click to hide internal directories.