Versions in this module Expand all Collapse all v2 v2.1.8 Jun 21, 2023 v2.1.7 Mar 16, 2023 v2.1.6 Jul 1, 2022 Changes in this version + const GINKGO_FOCUS_EXIT_CODE + const GINKGO_TIME_FORMAT + const VERSION + var DEBUG_LABEL_FILTER_PARSING = false + 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 = NodeTypeContainer | NodeTypeIt + var NodeTypesForSuiteLevelNodes = NodeTypeBeforeSuite | NodeTypeSynchronizedBeforeSuite | NodeTypeAfterSuite | NodeTypeSynchronizedAfterSuite | NodeTypeReportAfterSuite | NodeTypeCleanupAfterSuite + 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 = SpecStateFailed | SpecStateAborted | SpecStatePanicked | SpecStateInterrupted + var SuiteConfigFlags = GinkgoFlags + func GenerateFlagArgs(flags GinkgoFlags, bindings interface{}) ([]string, error) + func GenerateGinkgoTestRunArgs(suiteConfig SuiteConfig, reporterConfig ReporterConfig, ...) ([]string, error) + func GenerateGoTestCompileArgs(goFlagsConfig GoFlagsConfig, destination string, packageToBuild string) ([]string, error) + func GenerateGoTestRunArgs(goFlagsConfig GoFlagsConfig) ([]string, error) + func PruneStack(fullStackTrace string, skip int) string + func ValidateAndCleanupLabel(label string, cl CodeLocation) (string, error) + 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 + NumCompilers int + OutputDir string + Parallel bool + Procs int + RandomizeSuites bool + Recurse bool + Repeat int + RequireSuite bool + SkipPackage string + UntilItFails bool + WatchRegExp string + func NewDefaultCLIConfig() CLIConfig + func (g CLIConfig) ComputedNumCompilers() int + func (g CLIConfig) ComputedProcs() 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) ContentsOfLine() string + func (codeLocation CodeLocation) String() string + type ColorableStringer interface + ColorableString func() 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 + Version 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 EnumSupport struct + func NewEnumSupport(toString map[uint]string) EnumSupport + func (es EnumSupport) MarshJSON(e uint) ([]byte, error) + func (es EnumSupport) String(e uint) string + func (es EnumSupport) UnmarshJSON(b []byte) (uint, error) + 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) + func (fnc FailureNodeContext) String() string + type FileFilter struct + Filename *regexp.Regexp + LineFilters LineFilters + func (f FileFilter) Matches(locations []CodeLocation) bool + type FileFilters []FileFilter + func ParseFileFilters(filters []string) (FileFilters, error) + func (ffs FileFilters) Matches(locations []CodeLocation) bool + type GinkgoError struct + CodeLocation CodeLocation + DocLink string + Heading string + Message string + func (g GinkgoError) Error() string + type GinkgoFlag struct + DeprecatedDocLink string + DeprecatedName string + DeprecatedVersion 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 BuildLabelsCommandFlagSet(cliConfig *CLIConfig) (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) Lookup(name string) *flag.Flag + 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) SubsetWithNames(names ...string) 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 LabelFilter func([]string) bool + func ParseLabelFilter(input string) (LabelFilter, error) + type LineFilter struct + Max int + Min int + func (lf LineFilter) Matches(line int) bool + type LineFilters []LineFilter + func (lfs LineFilters) Matches(line int) bool + type NodeType uint + const NodeTypeAfterAll + const NodeTypeAfterEach + const NodeTypeAfterSuite + const NodeTypeBeforeAll + const NodeTypeBeforeEach + const NodeTypeBeforeSuite + const NodeTypeCleanupAfterAll + const NodeTypeCleanupAfterEach + const NodeTypeCleanupAfterSuite + const NodeTypeCleanupInvalid + const NodeTypeContainer + const NodeTypeInvalid + const NodeTypeIt + const NodeTypeJustAfterEach + const NodeTypeJustBeforeEach + const NodeTypeReportAfterEach + const NodeTypeReportAfterSuite + const NodeTypeReportBeforeEach + 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 + SuiteLabels []string + SuitePath string + SuiteSucceeded bool + func (report Report) Add(other Report) Report + type ReportEntries []ReportEntry + func (re ReportEntries) HasVisibility(visibilities ...ReportEntryVisibility) bool + func (re ReportEntries) WithVisibility(visibilities ...ReportEntryVisibility) ReportEntries + type ReportEntry struct + Location CodeLocation + Name string + Time time.Time + Value ReportEntryValue + Visibility ReportEntryVisibility + func (entry ReportEntry) GetRawValue() interface{} + func (entry ReportEntry) StringRepresentation() string + type ReportEntryValue struct + AsJSON string + Representation string + func WrapEntryValue(value interface{}) ReportEntryValue + func (rev *ReportEntryValue) GobDecode(data []byte) error + func (rev *ReportEntryValue) UnmarshalJSON(data []byte) error + func (rev ReportEntryValue) GetRawValue() interface{} + func (rev ReportEntryValue) GobEncode() ([]byte, error) + func (rev ReportEntryValue) MarshalJSON() ([]byte, error) + func (rev ReportEntryValue) String() string + type ReportEntryVisibility uint + const ReportEntryVisibilityAlways + const ReportEntryVisibilityFailureOrVerbose + const ReportEntryVisibilityNever + func (rev *ReportEntryVisibility) UnmarshalJSON(b []byte) error + func (rev ReportEntryVisibility) MarshalJSON() ([]byte, error) + func (rev ReportEntryVisibility) String() string + func (v ReportEntryVisibility) Is(visibilities ...ReportEntryVisibility) bool + type ReporterConfig struct + AlwaysEmitGinkgoWriter bool + FullTrace bool + JSONReport string + JUnitReport string + NoColor bool + SlowSpecThreshold time.Duration + Succinct bool + TeamcityReport string + Verbose bool + VeryVerbose bool + func NewDefaultReporterConfig() ReporterConfig + func (rc ReporterConfig) Verbosity() VerbosityLevel + func (rc ReporterConfig) WillGenerateReport() bool + type SemVer struct + Major int + Minor int + Patch int + func ParseSemVer(semver string) SemVer + func (s SemVer) GreaterThanOrEqualTo(o SemVer) bool + type SetupSummary = DeprecatedSetupSummary + type SpecComponentType = NodeType + type SpecFailure = DeprecatedSpecFailure + type SpecMeasurement = DeprecatedSpecMeasurement + type SpecReport struct + CapturedGinkgoWriterOutput string + CapturedStdOutErr string + ContainerHierarchyLabels [][]string + ContainerHierarchyLocations []CodeLocation + ContainerHierarchyTexts []string + EndTime time.Time + Failure Failure + IsInOrderedContainer bool + IsSerial bool + LeafNodeLabels []string + LeafNodeLocation CodeLocation + LeafNodeText string + LeafNodeType NodeType + NumAttempts int + ParallelProcess int + ReportEntries ReportEntries + 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) Labels() []string + func (report SpecReport) LineNumber() int + func (report SpecReport) MarshalJSON() ([]byte, error) + func (report SpecReport) MatchesLabelFilter(query string) (bool, error) + type SpecReports []SpecReport + func (reports SpecReports) CountOfFlakedSpecs() int + func (reports SpecReports) CountWithState(states SpecState) int + func (reports SpecReports) WithLeafNodeType(nodeTypes NodeType) SpecReports + func (reports SpecReports) WithState(states SpecState) SpecReports + type SpecState uint + const SpecStateAborted + const SpecStateFailed + const SpecStateInterrupted + const SpecStateInvalid + const SpecStatePanicked + const SpecStatePassed + const SpecStatePending + const SpecStateSkipped + func (ss *SpecState) UnmarshalJSON(b []byte) error + func (ss SpecState) Is(states SpecState) bool + func (ss SpecState) MarshalJSON() ([]byte, error) + func (ss SpecState) String() string + type SpecSummary = DeprecatedSpecSummary + type SuiteConfig struct + DryRun bool + EmitSpecProgress bool + FailFast bool + FailOnPending bool + FlakeAttempts int + FocusFiles []string + FocusStrings []string + LabelFilter string + OutputInterceptorMode string + ParallelHost string + ParallelProcess int + ParallelTotal int + RandomSeed int64 + RandomizeAllSpecs bool + SkipFiles []string + SkipStrings []string + Timeout time.Duration + func NewDefaultSuiteConfig() SuiteConfig + type SuiteSummary = DeprecatedSuiteSummary + type VerbosityLevel uint + const VerbosityLevelNormal + const VerbosityLevelSuccinct + const VerbosityLevelVerbose + const VerbosityLevelVeryVerbose + func (vl VerbosityLevel) GT(comp VerbosityLevel) bool + func (vl VerbosityLevel) GTE(comp VerbosityLevel) bool + func (vl VerbosityLevel) Is(comp VerbosityLevel) bool + func (vl VerbosityLevel) LT(comp VerbosityLevel) bool + func (vl VerbosityLevel) LTE(comp VerbosityLevel) bool Other modules containing this package github.com/Letty5411/ginkgo