コード例 #1
0
ファイル: aggregator_test.go プロジェクト: lichia/hydra
	. "github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/ginkgo/aggregator"
	st "github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/stenographer"
	"github.com/innotech/hydra/vendors/github.com/onsi/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,
コード例 #2
0
ファイル: default_reporter_test.go プロジェクト: lichia/hydra
import (
	. "github.com/innotech/hydra/vendors/github.com/onsi/ginkgo"
	"github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/config"
	"github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/reporters"
	st "github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/stenographer"
	"github.com/innotech/hydra/vendors/github.com/onsi/ginkgo/types"
	. "github.com/onsi/gomega"
	"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)