godog/_examples/custom-formatter
2021-08-10 11:27:17 +02:00
..
features Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
imgs Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
emoji.go Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
go.mod Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
go.sum Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
godogs.go Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
godogs_test.go Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
README.md Export internal formatters (#372) 2021-08-10 11:27:17 +02:00

Custom Formatter Example

This example custom formatter demonstrates some ways to build and use custom formatters with godog

Emoji Progress

The first example is the Emoji formatter, built on top of the Progress formatter that is included with godog.

To run it:

$ godog -f emoji

Which would output step progress as emojis rather than text: