golandreporter

package module
v0.0.0-...-0052784 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 7 Imported by: 0

README

Goland Ginkgo Reporter

Ginkgo does not output results in a format which can be converted into JSON (via go tool test2json, which is used by Goland to get a list of output.

This reporter will trick test2json into outputting the Ginkgo specs similar to go test output.

Usage

In your suite replace RunSpecs(t, "Integration Suite") with the following:

golandReporter := golandreporter.NewGolandReporter()
RunSpecsWithCustomReporters(t, "Integration Suite", []Reporter{golandReporter})

If you want to retain normal Ginkgo formatting when using it from the CLI the best option is to use an environment variable in your Run Configuration, and use it like this:

RunSpecsWithCustomReporters(t, "Integration Suite", []Reporter{golandreporter.NewAutoGolandReporter()})

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoGolandReporter

func NewAutoGolandReporter() reporters.Reporter

func NewGolandReporter

func NewGolandReporter() reporters.Reporter

Types

type GolandReporter

type GolandReporter struct{}

func (GolandReporter) AfterSuiteDidRun

func (g GolandReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

func (GolandReporter) BeforeSuiteDidRun

func (g GolandReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

func (GolandReporter) SpecDidComplete

func (g GolandReporter) SpecDidComplete(specSummary *types.SpecSummary)

func (GolandReporter) SpecSuiteDidEnd

func (g GolandReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

func (GolandReporter) SpecSuiteWillBegin

func (g GolandReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)

func (GolandReporter) SpecWillRun

func (g GolandReporter) SpecWillRun(specSummary *types.SpecSummary)

Jump to

Keyboard shortcuts

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