Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cucumber/godog
/ functions
Functions
646 in github.com/cucumber/godog
⨍
Functions
646
◇
Types & classes
120
↓ 3 callers
Method
FindRule
FindRule returns the rule to which the given scenario belongs
internal/models/feature.go:17
↓ 3 callers
Method
Log
Log will log to the current testing.T log if set, otherwise it will log to stdout
testingt.go:23
↓ 3 callers
Method
Log
(args ...interface{})
testingt.go:108
↓ 3 callers
Method
Logf
Logf will log a formatted string to the current testing.T log if set, otherwise it will log to stdout
testingt.go:26
↓ 3 callers
Method
Logf
(format string, args ...interface{})
testingt.go:117
↓ 3 callers
Method
MustGetFeatures
MustGetFeatures will retrieve all features by and panic on error.
internal/storage/storage.go:273
↓ 3 callers
Method
MustGetPickle
MustGetPickle will retrieve a pickle by id and panic on error.
internal/storage/storage.go:157
↓ 3 callers
Method
MustGetPickleResult
MustGetPickleResult will retrieve a pickle result by id and panic on error.
internal/storage/storage.go:205
↓ 3 callers
Method
MustGetPickles
MustGetPickles will retrieve pickles by URI and panic on error.
internal/storage/storage.go:163
↓ 3 callers
Method
MustGetTestRunStarted
MustGetTestRunStarted will retrieve the test run started event and panic on error.
internal/storage/storage.go:187
↓ 3 callers
Method
MustInsertTestRunStarted
MustInsertTestRunStarted will set the test run started event and panic on error.
internal/storage/storage.go:179
↓ 3 callers
Function
ParseFromBytes
(filter, dialect string, featuresInputs []FeatureContent)
internal/parser/parser.go:196
↓ 3 callers
Method
SetStorage
(s *storage.Storage)
internal/formatters/fmt_multi.go:25
↓ 3 callers
Method
SkipNow
SkipNow marks the current test as skipped and halts execution of the step.
testingt.go:48
↓ 3 callers
Method
Then
Then functions identically to Step, but the *StepDefinition will only be matched if the step starts with "Then". "And" and "But" keywords copy the key
test_context.go:279
↓ 3 callers
Function
assertExpectedAndActual
(a expectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{})
suite_context_test.go:884
↓ 3 callers
Function
astContextParse
(src string, t *testing.T)
internal/builder/ast_test.go:30
↓ 3 callers
Function
astContexts
(f *ast.File, selectName string)
internal/builder/ast.go:5
↓ 3 callers
Function
buildTestPackage
(dir string, files map[string]string)
internal/builder/builder_test.go:148
↓ 3 callers
Function
envVarsWithoutGopath
()
internal/builder/builder_test.go:178
↓ 3 callers
Function
godogsFromContext
(ctx context.Context)
_examples/godogs/godogs_test.go:61
↓ 3 callers
Function
injectAll
(src string)
suite_context_test.go:208
↓ 3 callers
Function
junitTimeDuration
(from, to time.Time)
internal/formatters/fmt_junit.go:47
↓ 3 callers
Method
lengthPickleStep
(keyword, text string)
internal/formatters/fmt_pretty.go:580
↓ 3 callers
Function
line
a line number representation in feature file
internal/formatters/fmt_pretty.go:573
↓ 3 callers
Function
makeCukeID
(name string)
internal/formatters/fmt_cucumber.go:324
↓ 3 callers
Method
matchStepTextAndType
(text string, stepType messages.PickleStepType)
suite.go:511
↓ 3 callers
Method
name
()
flags.go:141
↓ 3 callers
Function
parseSeed
(str string)
run_test.go:749
↓ 3 callers
Method
printScenarioHeader
(pickle *messages.Pickle, astScenario *messages.Scenario, spaceFilling int)
internal/formatters/fmt_pretty.go:169
↓ 3 callers
Function
printStepDefinitions
(steps []*models.StepDefinition, w io.Writer)
fmt.go:55
↓ 3 callers
Method
printTableRow
(row *messages.TableRow, max []int, clr colors.ColorFunc)
internal/formatters/fmt_pretty.go:351
↓ 3 callers
Method
resetBuffer
()
colors/ansi_windows.go:318
↓ 3 callers
Method
scenarioLocation
(pickle *messages.Pickle)
internal/formatters/fmt_events.go:331
↓ 3 callers
Function
usage
(set *flag.FlagSet, w io.Writer)
flags.go:164
↓ 2 callers
Method
AfterSuite
AfterSuite registers a function or method to be run once after suite runner
test_context.go:86
↓ 2 callers
Method
Available
Available returns the number of currently available Godogs.
_examples/godogs/godogs.go:31
↓ 2 callers
Function
BuildTestFeatureWithRules
BuildTestFeature creates a feature with rules for testing purpose. The created feature includes: - a background - one normal scenario with three step
internal/testutils/utils.go:68
↓ 2 callers
Function
ExtractFeaturePathLine
ExtractFeaturePathLine ...
internal/parser/parser.go:24
↓ 2 callers
Method
FailNow
()
testingt.go:142
↓ 2 callers
Method
Flush
()
formatters/fmt.go:80
↓ 2 callers
Function
InitializeScenario
InitializeScenario provides steps for godog suite execution and can be used for meta-testing of godog features/steps themselves. Beware, steps or the
suite_context_test.go:39
↓ 2 callers
Method
MustGetPickleResults
MustGetPickleResults will retrieve all pickle results and panic on error.
internal/storage/storage.go:211
↓ 2 callers
Method
MustGetPickleStepResultsByPickleIDUntilStep
MustGetPickleStepResultsByPickleIDUntilStep will retrieve pickle step results by pickle id from 0..stepID for that pickle.
internal/storage/storage.go:238
↓ 2 callers
Method
MustGetStepDefintionMatch
MustGetStepDefintionMatch will retrieve the matched StepDefintion for the step ID and panic on error.
internal/storage/storage.go:298
↓ 2 callers
Method
MustInsertStepDefintionMatch
MustInsertStepDefintionMatch will insert the matched StepDefintion for the step ID and panic on error.
internal/storage/storage.go:288
↓ 2 callers
Method
ScenarioContext
ScenarioContext allows registering scenario hooks.
test_context.go:91
↓ 2 callers
Method
When
When functions identically to Step, but the *StepDefinition will only be matched if the step starts with "When". "And" and "But" keywords copy the key
test_context.go:271
↓ 2 callers
Method
Write
(data []byte)
colors/no_colors.go:20
↓ 2 callers
Method
Write
(p []byte)
colors/ansi_windows.go:353
↓ 2 callers
Method
Write
(p []byte)
internal/formatters/fmt_color_tag_test.go:103
↓ 2 callers
Function
assertOutput
(t *testing.T, formatter string, expected, actual string)
run_test.go:670
↓ 2 callers
Function
bufErrorPipe
(t *testing.T)
run_test.go:358
↓ 2 callers
Function
buildTestCommand
(t *testing.T, wd, featureFile string)
internal/builder/builder_test.go:162
↓ 2 callers
Function
callStack
()
stacktrace.go:111
↓ 2 callers
Method
cleanupSnippet
(snip string)
suite_context_test.go:359
↓ 2 callers
Function
contains
(tags []*messages.PickleTag, tag string)
internal/tags/tag_filter.go:52
↓ 2 callers
Function
convertTextAttr
(winAttr uint16)
colors/ansi_windows.go:229
↓ 2 callers
Function
fail
fail writes a json response with error msg and status header
_examples/api/api.go:25
↓ 2 callers
Function
filterFeatures
(filter string, features []*models.Feature)
internal/parser/parser.go:233
↓ 2 callers
Method
flushTo
(w io.Writer)
colors/ansi_windows.go:322
↓ 2 callers
Function
getConsoleScreenBufferInfo
(hConsoleOutput uintptr)
colors/ansi_windows.go:202
↓ 2 callers
Function
getDefaultOptions
()
run.go:395
↓ 2 callers
Method
iRunFeatureSuiteWithTagsAndFormatter
(filter string, fmtFunc FormatterFunc)
suite_context_test.go:273
↓ 2 callers
Function
longestExampleRow
(t *messages.Examples, clrs ...colors.ColorFunc)
internal/formatters/fmt_pretty.go:520
↓ 2 callers
Method
longestStep
(steps []*messages.Step, pickleLength int)
internal/formatters/fmt_pretty.go:559
↓ 2 callers
Function
makeRandomSeed
Choose randomly assigns a convenient pseudo-random seed value. The resulting seed will be between `1-99999` for later ease of specification.
flags_v0110.go:16
↓ 2 callers
Method
maybeSubSteps
(ctx context.Context, result interface{})
suite.go:447
↓ 2 callers
Function
normalise
(s string)
internal/formatters/fmt_output_test.go:196
↓ 2 callers
Function
normaliseLocalImportPath
(dir string)
internal/builder/builder.go:287
↓ 2 callers
Function
parseFeatureFile
(fsys fs.FS, path, dialect string, newIDFunc func() string)
internal/parser/parser.go:36
↓ 2 callers
Function
parseImport
parseImport parses the import path to deal with go module.
internal/builder/builder.go:404
↓ 2 callers
Function
parseProgressOutput
(output string)
run_test.go:690
↓ 2 callers
Method
printDocString
(docString *messages.DocString)
internal/formatters/fmt_pretty.go:461
↓ 2 callers
Method
printTable
print table with aligned table cells @TODO: need to make example header cells bold
internal/formatters/fmt_pretty.go:479
↓ 2 callers
Method
printTableHeader
(row *messages.TableRow, max []int)
internal/formatters/fmt_pretty.go:363
↓ 2 callers
Function
processPackageTestFiles
processPackageTestFiles runs through ast of each test file pack and looks for godog suite contexts to register on run
internal/builder/builder.go:468
↓ 2 callers
Method
resetBuffer
()
internal/formatters/fmt_color_tag_test.go:68
↓ 2 callers
Method
runAfterStepHooks
(ctx context.Context, step *Step, status StepResultStatus, err error)
suite.go:323
↓ 2 callers
Method
runBeforeStepHooks
(ctx context.Context, step *Step, err error)
suite.go:296
↓ 2 callers
Method
runPickle
(pickle *messages.Pickle)
suite.go:603
↓ 2 callers
Method
runSteps
(ctx context.Context, pickle *Scenario, steps []*Step)
suite.go:574
↓ 2 callers
Function
setupStopOnFailureSteps
setupStopOnFailureSteps registers the step definitions for the stop-on-failure test
internal/formatters/fmt_junit_test.go:88
↓ 2 callers
Function
testRunWithOptions
( t *testing.T, opts Options, scenarioInitializer func(*ScenarioContext), )
run_test.go:646
↓ 2 callers
Function
wrapString
wrapString wraps a string into chunks of the given width.
internal/formatters/fmt_output_test.go:263
↓ 1 callers
Method
Add
Add increments Godogs count.
_examples/godogs/godogs.go:11
↓ 1 callers
Method
Add
Add adds formatter with output writer.
internal/formatters/fmt_multi.go:115
↓ 1 callers
Function
CreateBuildCmd
CreateBuildCmd creates the build subcommand.
cmd/godog/internal/cmd_build.go:18
↓ 1 callers
Function
CreateRootCmd
CreateRootCmd creates the root command.
cmd/godog/internal/cmd_root.go:14
↓ 1 callers
Function
CreateRunCmd
CreateRunCmd creates the run subcommand.
cmd/godog/internal/cmd_run.go:20
↓ 1 callers
Function
CreateVersionCmd
CreateVersionCmd creates the version subcommand.
cmd/godog/internal/cmd_version.go:13
↓ 1 callers
Method
Eat
Eat decrements Godogs count or fails if there is not enough available.
_examples/godogs/godogs.go:16
↓ 1 callers
Function
FindFmt
FindFmt searches available formatters registered and returns FormaterFunc matched by given format name or nil otherwise
formatters/fmt.go:21
↓ 1 callers
Method
FormatterFunc
FormatterFunc implements the FormatterFunc for the multi formatter.
internal/formatters/fmt_multi.go:128
↓ 1 callers
Method
Given
Given functions identically to Step, but the *StepDefinition will only be matched if the step starts with "Given". "And" and "But" keywords copy the k
test_context.go:263
↓ 1 callers
Function
Green
Green will accept an interface and return a colorized green string.
colors/colors.go:41
↓ 1 callers
Function
Log
Log will log test output. If called in the context of a test and testing.T has been registered, this will log using the step's testing.T, else it will
testingt.go:65
↓ 1 callers
Function
Logf
Logf will log test output. If called in the context of a test and testing.T has been registered, this will log using the step's testing.T, else it wil
testingt.go:55
↓ 1 callers
Function
LoggedMessages
LoggedMessages returns an array of any logged messages that have been recorded during the test through calls to godog.Log / godog.Logf or via operatio
testingt.go:75
↓ 1 callers
Function
NewProgress
NewProgress creates a new progress formatter.
internal/formatters/fmt_progress.go:24
← previous
next →
101–200 of 646, ranked by callers