forked from cucumber/godog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.go
32 lines (26 loc) · 1.25 KB
/
custom.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package customformatter
import (
"io"
"github.com/cucumber/godog"
"github.com/cucumber/messages-go/v10"
)
func init() {
godog.Format("custom", "Custom formatter", customFormatterFunc)
}
func customFormatterFunc(suite string, out io.Writer) godog.Formatter {
return &customFmt{suiteName: suite, out: out}
}
type customFmt struct {
suiteName string
out io.Writer
}
func (f *customFmt) TestRunStarted() {}
func (f *customFmt) Feature(*messages.GherkinDocument, string, []byte) {}
func (f *customFmt) Pickle(*godog.Scenario) {}
func (f *customFmt) Defined(*godog.Scenario, *godog.Step, *godog.StepDefinition) {}
func (f *customFmt) Passed(*godog.Scenario, *godog.Step, *godog.StepDefinition) {}
func (f *customFmt) Skipped(*godog.Scenario, *godog.Step, *godog.StepDefinition) {}
func (f *customFmt) Undefined(*godog.Scenario, *godog.Step, *godog.StepDefinition) {}
func (f *customFmt) Failed(*godog.Scenario, *godog.Step, *godog.StepDefinition, error) {}
func (f *customFmt) Pending(*godog.Scenario, *godog.Step, *godog.StepDefinition) {}
func (f *customFmt) Summary() {}