godog/formatter-tests/pretty/some_scenarions_including_failing

38 строки
2 КиБ
Text

<bold-white>Feature:</bold-white> some scenarios
<bold-white>Scenario:</bold-white> failing <black># formatter-tests/features/some_scenarions_including_failing.feature:3</black>
<green>Given</green> <green>passing step</green> <black># formatters_print_test.go:65 -> passingStepDef</black>
<red>When</red> <red>failing step</red> <black># formatters_print_test.go:81 -> failingStepDef</black>
<bold-red>step failed</bold-red>
<cyan>Then</cyan> <cyan>passing step</cyan> <black># formatters_print_test.go:65 -> passingStepDef</black>
<bold-white>Scenario:</bold-white> pending <black># formatter-tests/features/some_scenarions_including_failing.feature:8</black>
<yellow>When</yellow> <yellow>pending step</yellow> <black># formatters_print_test.go:79 -> pendingStepDef</black>
<yellow>TODO: write pending definition</yellow>
<cyan>Then</cyan> <cyan>passing step</cyan> <black># formatters_print_test.go:65 -> passingStepDef</black>
<bold-white>Scenario:</bold-white> undefined <black># formatter-tests/features/some_scenarions_including_failing.feature:12</black>
<yellow>When</yellow> <yellow>undefined</yellow>
<cyan>Then</cyan> <cyan>passing step</cyan> <black># formatters_print_test.go:65 -> passingStepDef</black>
--- <red>Failed steps:</red>
<red>Scenario: failing</red><black> # formatter-tests/features/some_scenarions_including_failing.feature:3</black>
<red>When failing step</red><black> # formatter-tests/features/some_scenarions_including_failing.feature:5</black>
<red>Error: </red><bold-red>step failed</bold-red>
3 scenarios (<red>1 failed</red>, <yellow>1 pending</yellow>, <yellow>1 undefined</yellow>)
7 steps (<green>1 passed</green>, <red>1 failed</red>, <yellow>1 pending</yellow>, <yellow>1 undefined</yellow>, <cyan>3 skipped</cyan>)
0s
<yellow>You can implement step definitions for undefined steps with these snippets:</yellow>
<yellow>
func undefined() error {
return godog.ErrPending
}
func FeatureContext(s *godog.Suite) {
s.Step(`^undefined$`, undefined)
}
</yellow>