-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Describe Formatter API #980
Labels
Comments
I am looking to this open issue. |
For anyone interested in diving into implementing a Formatter, I'd suggest to take a look at behave-html-formatter, which is a rather minimal but complete example (for a standalone formatter). The gist of it is: from behave.formatter.base import Formatter
class MyCustomFormatter(Formatter):
name = ...
description = ...
def __init__(self, stream, config):
...
def feature(self, feature):
...
def background(self, background):
...
def scenario(self, scenario):
...
def scenario_outline(self, outline):
...
def step(self, step):
... I guess what the class members are designed for is somewhat self-explanatory. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Formatter
API should be described/documented in more detail.MENTIONED BY @janoskut in #412:
UNTIL DOCUMENTED:
Inspect the
behave.formatter.base:Formatter
class documentation and the variousFormatter
implementations underbehave.formatter
.SEE ALSO:
The text was updated successfully, but these errors were encountered: