Exemplo n.º 1
0
import (
	. "github.com/onsi/gomega"
	. "github.com/paybyphone/ginkgo"
	"github.com/paybyphone/ginkgo/config"
	"github.com/paybyphone/ginkgo/reporters"
	st "github.com/paybyphone/ginkgo/stenographer"
	"github.com/paybyphone/ginkgo/types"
	"time"
)

var _ = Describe("DefaultReporter", func() {
	var (
		reporter       *reporters.DefaultReporter
		reporterConfig config.DefaultReporterConfigType
		stenographer   *st.FakeStenographer

		ginkgoConfig config.GinkgoConfigType
		suite        *types.SuiteSummary
		example      *types.ExampleSummary
	)

	BeforeEach(func() {
		stenographer = st.NewFakeStenographer()
		reporterConfig = config.DefaultReporterConfigType{
			NoColor:           false,
			SlowSpecThreshold: 0.1,
			NoisyPendings:     true,
			Verbose:           true,
		}

		reporter = reporters.NewDefaultReporter(reporterConfig, stenographer)
Exemplo n.º 2
0
	. "github.com/paybyphone/ginkgo/ginkgo/aggregator"
	st "github.com/paybyphone/ginkgo/stenographer"
	"github.com/paybyphone/ginkgo/types"
	"runtime"
	"time"
)

var _ = Describe("Aggregator", func() {
	var (
		aggregator     *Aggregator
		reporterConfig config.DefaultReporterConfigType
		stenographer   *st.FakeStenographer
		result         chan bool

		ginkgoConfig1 config.GinkgoConfigType
		ginkgoConfig2 config.GinkgoConfigType

		suiteSummary1 *types.SuiteSummary
		suiteSummary2 *types.SuiteSummary

		exampleSummary *types.ExampleSummary

		suiteDescription string
	)

	BeforeEach(func() {
		reporterConfig = config.DefaultReporterConfigType{
			NoColor:           false,
			SlowSpecThreshold: 0.1,
			NoisyPendings:     true,
			Succinct:          false,
			Verbose:           true,