Skip to content
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

"behave --format help" raises an error #31

Closed
jenisys opened this issue Feb 19, 2012 · 4 comments
Closed

"behave --format help" raises an error #31

jenisys opened this issue Feb 19, 2012 · 4 comments
Labels

Comments

@jenisys
Copy link
Member

jenisys commented Feb 19, 2012

VERSION: 1.1.0
CONTEXT: command-line processing

"behave --format help" raises an error because it tries to access the non-existing help formatter.
Therefore, it does not behave as described in the commands help text.

OOPS: Mmh, untested command-line behaviour ,-)

@jenisys
Copy link
Member Author

jenisys commented Feb 19, 2012

NOTE:
This problem occurs only when "behave.ini" exists.

ADDONS to this trouble-ticket:
behave --format=json fails with:
...
failed = scenario.run(runner)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/behave/model.py", line 431, in run
runner.formatter.step(step)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/behave/formatter/json.py", line 50, in step
element['steps'].append(step.to_dict())
AttributeError: 'dict' object has no attribute 'to_dict'

IF "behave.ini" config-file exists (with format=pretty):
behave --format=xxx fails for different reasons with xxx=pretty, plain, json.

jenisys added a commit to jenisys/behave that referenced this issue Feb 21, 2012
FIXED issue behave#31: behave --format=help
@jenisys
Copy link
Member Author

jenisys commented Mar 13, 2012

FIXED on jenisys/behave with tag=fix-issue31

jeamland added a commit that referenced this issue May 23, 2012
jenisys added a commit to jenisys/behave that referenced this issue Jun 2, 2012
@quantoid
Copy link

Raised #59 for format=json error rather than overloading this ticket with a different failure.

jenisys added a commit that referenced this issue Feb 10, 2013
@jenisys jenisys reopened this Feb 10, 2013
@jenisys
Copy link
Member Author

jenisys commented Feb 10, 2013

FIXED-IN: 1.2.2.16

Make formatter list more predictable to simplify that selftest can verify that this issue is fixed.

@jenisys jenisys closed this as completed Feb 10, 2013
schidlo pushed a commit to schidlo/behave that referenced this issue Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants