Versions in this module Expand all Collapse all v2 v2.1.1 May 1, 2021 v2.1.0 May 1, 2021 Changes in this version + const GINKGO_FOCUS_EXIT_CODE + const VERSION + var Deprecations = deprecations + var FlagSections = GinkgoFlagSections + var GinkgoCLIRunAndWatchFlags = GinkgoFlags + var GinkgoCLIRunFlags = GinkgoFlags + var GinkgoCLISharedFlags = GinkgoFlags + var GinkgoCLIWatchFlags = GinkgoFlags + var GinkgoErrors = ginkgoErrors + var GoBuildFlags = GinkgoFlags + var GoRunFlags = GinkgoFlags + var NodeTypesForContainerAndIt = []NodeType + var NodeTypesForSuiteLevelNodes = []NodeType + var ParallelConfigFlags = GinkgoFlags + var ReporterConfigFlags = GinkgoFlags + var SpecComponentTypeAfterEach = NodeTypeAfterEach + var SpecComponentTypeAfterSuite = NodeTypeAfterSuite + var SpecComponentTypeBeforeEach = NodeTypeBeforeEach + var SpecComponentTypeBeforeSuite = NodeTypeBeforeSuite + var SpecComponentTypeContainer = NodeTypeContainer + var SpecComponentTypeInvalid = NodeTypeInvalid + var SpecComponentTypeIt = NodeTypeIt + var SpecComponentTypeJustAfterEach = NodeTypeJustAfterEach + var SpecComponentTypeJustBeforeEach = NodeTypeJustBeforeEach + var SpecComponentTypeSynchronizedAfterSuite = NodeTypeSynchronizedAfterSuite + var SpecComponentTypeSynchronizedBeforeSuite = NodeTypeSynchronizedBeforeSuite + var SpecStateFailureStates = []SpecState + var SuiteConfigFlags = GinkgoFlags + func GenerateFlagArgs(flags GinkgoFlags, bindings interface{}) ([]string, error) + func GenerateGoTestCompileArgs(goFlagsConfig GoFlagsConfig, destination string, packageToBuild string) ([]string, error) + func GenerateTestRunArgs(suiteConfig SuiteConfig, reporterConfig ReporterConfig, ...) ([]string, error) + func PruneStack(fullStackTrace string, skip int) string + func VetAndInitializeCLIAndGoConfig(cliConfig CLIConfig, goFlagsConfig GoFlagsConfig) (CLIConfig, GoFlagsConfig, []error) + func VetConfig(flagSet GinkgoFlagSet, suiteConfig SuiteConfig, reporterConfig ReporterConfig) []error + type CLIConfig struct + AfterRunHook string + Depth int + KeepGoing bool + KeepSeparateCoverprofiles bool + KeepSeparateReports bool + Nodes int + NumCompilers int + OutputDir string + Parallel bool + RandomizeSuites bool + Recurse bool + Repeat int + RequireSuite bool + SkipPackage string + UntilItFails bool + WatchRegExp string + func NewDefaultCLIConfig() CLIConfig + func (g CLIConfig) ComputedNodes() int + type CodeLocation struct + CustomMessage string + FileName string + FullStackTrace string + LineNumber int + func NewCodeLocation(skip int) CodeLocation + func NewCodeLocationWithStackTrace(skip int) CodeLocation + func NewCustomCodeLocation(message string) CodeLocation + func (codeLocation CodeLocation) String() string + type DeprecatedSetupSummary struct + CapturedOutput string + CodeLocation CodeLocation + ComponentType SpecComponentType + Failure SpecFailure + RunTime time.Duration + State SpecState + SuiteID string + type DeprecatedSpecFailure struct + ComponentCodeLocation CodeLocation + ComponentIndex int + ComponentType SpecComponentType + ForwardedPanic string + Location CodeLocation + Message string + type DeprecatedSpecMeasurement struct + Average float64 + AverageLabel string + Info interface{} + Largest float64 + LargestLabel string + Name string + Order int + Precision int + Results []float64 + Smallest float64 + SmallestLabel string + StdDeviation float64 + Units string + func (s DeprecatedSpecMeasurement) PrecisionFmt() string + type DeprecatedSpecSummary struct + CapturedOutput string + ComponentCodeLocations []CodeLocation + ComponentTexts []string + Failure SpecFailure + IsMeasurement bool + Measurements map[string]*DeprecatedSpecMeasurement + NumberOfSamples int + RunTime time.Duration + State SpecState + SuiteID string + func (s DeprecatedSpecSummary) Failed() bool + func (s DeprecatedSpecSummary) HasFailureState() bool + func (s DeprecatedSpecSummary) Panicked() bool + func (s DeprecatedSpecSummary) Passed() bool + func (s DeprecatedSpecSummary) Pending() bool + func (s DeprecatedSpecSummary) Skipped() bool + func (s DeprecatedSpecSummary) TimedOut() bool + type DeprecatedSuiteSummary struct + NumberOfFailedSpecs int + NumberOfFlakedSpecs int + NumberOfPassedSpecs int + NumberOfPendingSpecs int + NumberOfSkippedSpecs int + NumberOfSpecsBeforeParallelization int + NumberOfSpecsThatWillBeRun int + NumberOfTotalSpecs int + RunTime time.Duration + SuiteDescription string + SuiteID string + SuiteSucceeded bool + type Deprecation struct + DocLink string + Message string + type DeprecationTracker struct + func NewDeprecationTracker() *DeprecationTracker + func (d *DeprecationTracker) DeprecationsReport() string + func (d *DeprecationTracker) DidTrackDeprecations() bool + func (d *DeprecationTracker) TrackDeprecation(deprecation Deprecation, cl ...CodeLocation) + type Failure struct + FailureNodeContainerIndex int + FailureNodeContext FailureNodeContext + FailureNodeLocation CodeLocation + FailureNodeType NodeType + ForwardedPanic string + Location CodeLocation + Message string + func (f Failure) IsZero() bool + type FailureNodeContext uint + const FailureNodeAtTopLevel + const FailureNodeContextInvalid + const FailureNodeInContainer + const FailureNodeIsLeafNode + func (fnc *FailureNodeContext) UnmarshalJSON(b []byte) error + func (fnc FailureNodeContext) MarshalJSON() ([]byte, error) + type GinkgoError struct + CodeLocation CodeLocation + DocLink string + Heading string + Message string + func (g GinkgoError) Error() string + type GinkgoFlag struct + DeprecatedDocLink string + DeprecatedName string + ExportAs string + KeyPath string + Name string + SectionKey string + Usage string + UsageArgument string + UsageDefaultValue string + type GinkgoFlagSection struct + Description string + Heading string + Key string + Style string + Succinct bool + type GinkgoFlagSections []GinkgoFlagSection + func (gfs GinkgoFlagSections) Lookup(key string) (GinkgoFlagSection, bool) + type GinkgoFlagSet struct + func BuildBuildCommandFlagSet(cliConfig *CLIConfig, goFlagsConfig *GoFlagsConfig) (GinkgoFlagSet, error) + func BuildRunCommandFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterConfig, cliConfig *CLIConfig, ...) (GinkgoFlagSet, error) + func BuildTestSuiteFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterConfig) (GinkgoFlagSet, error) + func BuildWatchCommandFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterConfig, cliConfig *CLIConfig, ...) (GinkgoFlagSet, error) + func NewAttachedGinkgoFlagSet(flagSet *flag.FlagSet, flags GinkgoFlags, bindings interface{}, ...) (GinkgoFlagSet, error) + func NewGinkgoFlagSet(flags GinkgoFlags, bindings interface{}, sections GinkgoFlagSections) (GinkgoFlagSet, error) + func (f GinkgoFlagSet) IsZero() bool + func (f GinkgoFlagSet) Parse(args []string) ([]string, error) + func (f GinkgoFlagSet) Usage() string + func (f GinkgoFlagSet) ValidateDeprecations(deprecationTracker *DeprecationTracker) + func (f GinkgoFlagSet) WasSet(name string) bool + type GinkgoFlags []GinkgoFlag + func (f GinkgoFlags) CopyAppend(flags ...GinkgoFlag) GinkgoFlags + func (f GinkgoFlags) WithPrefix(prefix string) GinkgoFlags + type GoFlagsConfig struct + A bool + ASMFlags string + BlockProfile string + BlockProfileRate int + BuildMode string + CPUProfile string + Compiler string + Cover bool + CoverMode string + CoverPkg string + CoverProfile string + GCCGoFlags string + GCFlags string + InstallSuffix string + LDFlags string + LinkShared bool + MSan bool + MemProfile string + MemProfileRate int + Mod string + ModCacheRW bool + ModFile string + MutexProfile string + MutexProfileFraction int + N bool + PkgDir string + Race bool + Tags string + ToolExec string + Trace string + TrimPath bool + Vet string + Work bool + X bool + func NewDefaultGoFlagsConfig() GoFlagsConfig + func (g GoFlagsConfig) BinaryMustBePreserved() bool + type NodeType uint + const NodeTypeAfterEach + const NodeTypeAfterSuite + const NodeTypeBeforeEach + const NodeTypeBeforeSuite + const NodeTypeContainer + const NodeTypeInvalid + const NodeTypeIt + const NodeTypeJustAfterEach + const NodeTypeJustBeforeEach + const NodeTypeReportAfterEach + const NodeTypeReportAfterSuite + const NodeTypeSynchronizedAfterSuite + const NodeTypeSynchronizedBeforeSuite + func (nt *NodeType) UnmarshalJSON(b []byte) error + func (nt NodeType) Is(nodeTypes ...NodeType) bool + func (nt NodeType) MarshalJSON() ([]byte, error) + func (nt NodeType) String() string + type PreRunStats struct + SpecsThatWillRun int + TotalSpecs int + type Report struct + EndTime time.Time + PreRunStats PreRunStats + RunTime time.Duration + SpecReports SpecReports + SpecialSuiteFailureReasons []string + StartTime time.Time + SuiteConfig SuiteConfig + SuiteDescription string + SuiteHasProgrammaticFocus bool + SuitePath string + SuiteSucceeded bool + func (report Report) Add(other Report) Report + type ReporterConfig struct + FullTrace bool + JSONReport string + JUnitReport string + NoColor bool + ReportPassed bool + SlowSpecThreshold time.Duration + Succinct bool + TeamcityReport string + Verbose bool + func NewDefaultReporterConfig() ReporterConfig + func (rc ReporterConfig) WillGenerateReport() bool + type SetupSummary = DeprecatedSetupSummary + type SpecComponentType = NodeType + type SpecFailure = DeprecatedSpecFailure + type SpecMeasurement = DeprecatedSpecMeasurement + type SpecReport struct + CapturedGinkgoWriterOutput string + CapturedStdOutErr string + ContainerHierarchyLocations []CodeLocation + ContainerHierarchyTexts []string + EndTime time.Time + Failure Failure + GinkgoParallelNode int + LeafNodeLocation CodeLocation + LeafNodeText string + LeafNodeType NodeType + NumAttempts int + RunTime time.Duration + StartTime time.Time + State SpecState + func (report SpecReport) CombinedOutput() string + func (report SpecReport) Failed() bool + func (report SpecReport) FailureLocation() CodeLocation + func (report SpecReport) FailureMessage() string + func (report SpecReport) FileName() string + func (report SpecReport) FullText() string + func (report SpecReport) LineNumber() int + func (report SpecReport) MarshalJSON() ([]byte, error) + type SpecReports []SpecReport + func (reports SpecReports) CountOfFlakedSpecs() int + func (reports SpecReports) CountWithState(states ...SpecState) int + func (reports SpecReports) WithLeafNodeType(nodeType ...NodeType) SpecReports + func (reports SpecReports) WithState(states ...SpecState) SpecReports + type SpecState uint + const SpecStateFailed + const SpecStateInterrupted + const SpecStateInvalid + const SpecStatePanicked + const SpecStatePassed + const SpecStatePending + const SpecStateSkipped + func (s *SpecState) UnmarshalJSON(b []byte) error + func (s SpecState) MarshalJSON() ([]byte, error) + func (s SpecState) String() string + func (state SpecState) Is(states ...SpecState) bool + type SpecSummary = DeprecatedSpecSummary + type SuiteConfig struct + DryRun bool + EmitSpecProgress bool + FailFast bool + FailOnPending bool + FlakeAttempts int + FocusStrings []string + ParallelHost string + ParallelNode int + ParallelTotal int + RandomSeed int64 + RandomizeAllSpecs bool + RegexScansFilePath bool + SkipStrings []string + Timeout time.Duration + func NewDefaultSuiteConfig() SuiteConfig + type SuiteSummary = DeprecatedSuiteSummary Other modules containing this package github.com/alex-held/ginkgo