ginkgoland

package module
v0.0.2-0...-9a71868 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

ginkgoland

Ginkgoland is a reporter for ginkgo that creates a go test format output. This output can be parsed by go tool test2json which is used by ginkgoland.

To use it, add the reporter to the list of custom reporters in your suite file. With this everything should be in place.

	RunSpecsWithCustomReporters(t, "Suite Name", []Reporter{&ginkgoland.Reporter{T: t}})

This project uses the reporter so look at the test files as an example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	T *testing.T
	// contains filtered or unexported fields
}

func (*Reporter) AfterSuiteDidRun

func (r *Reporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

func (*Reporter) BeforeSuiteDidRun

func (r *Reporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

func (*Reporter) SetWriter

func (r *Reporter) SetWriter(w io.Writer)

func (*Reporter) SpecDidComplete

func (r *Reporter) SpecDidComplete(specSummary *types.SpecSummary)

func (*Reporter) SpecSuiteDidEnd

func (r *Reporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

func (*Reporter) SpecSuiteWillBegin

func (r *Reporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)

func (*Reporter) SpecWillRun

func (r *Reporter) SpecWillRun(specSummary *types.SpecSummary)

Jump to

Keyboard shortcuts

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