reporter

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

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

Intro

Goconvey doesn't work with ginkgo default reporter as it doesn't follow the stardard go test output. This little untested reporter will help you to get the passed test suites as passed.

How to use

package mypackage
import (
	"testing"

	"github.com/capitancambio/reporter"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)


func TestTimer(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "MySpec")
	reporter := reporter.NewGoTestCompatibleReporter()
	RunSpecsWithCustomReporters(t, "Suit", []Reporter{reporter})
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTestCompatibleReporter

type GoTestCompatibleReporter struct {
	Config config.GinkgoConfigType
}

GoTestCompatibleReporter is useful for testing purposes

func NewGoTestCompatibleReporter

func NewGoTestCompatibleReporter() *GoTestCompatibleReporter

func (*GoTestCompatibleReporter) AfterSuiteDidRun

func (reporter *GoTestCompatibleReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

func (*GoTestCompatibleReporter) BeforeSuiteDidRun

func (reporter *GoTestCompatibleReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

func (*GoTestCompatibleReporter) SpecDidComplete

func (reporter *GoTestCompatibleReporter) SpecDidComplete(specSummary *types.SpecSummary)

func (*GoTestCompatibleReporter) SpecSuiteDidEnd

func (reporter *GoTestCompatibleReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

func (*GoTestCompatibleReporter) SpecSuiteWillBegin

func (reporter *GoTestCompatibleReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)

func (*GoTestCompatibleReporter) SpecWillRun

func (reporter *GoTestCompatibleReporter) SpecWillRun(specSummary *types.SpecSummary)

Jump to

Keyboard shortcuts

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