Skip to content

Commit

Permalink
radish: support bdd xml target file
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Jul 1, 2015
1 parent b819f44 commit ca06b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion radish/extensions/bdd_xml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def generate_bdd_xml(features):
feature_element.append(scenarios_element)
testrun_element.append(feature_element)

with io.open("result.xml", "w+", encoding="utf-8") as f:
with io.open(world.config.bdd_xml, "w+", encoding="utf-8") as f:
f.write(unicode(etree.tostring(testrun_element, pretty_print=True, xml_declaration=True, encoding="utf-8")))


Expand Down
4 changes: 2 additions & 2 deletions radish/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def main():
[--debug-steps]
[--debug-after-failure]
[--inspect-after-failure]
[--bdd-xml]
[--bdd-xml=<bddxml>]
[--no-ansi]
[--no-line-jump]
[--write-steps-once]
Expand All @@ -138,7 +138,7 @@ def main():
--debug-steps debugs each step
--debug-after-failure start python debugger after failure
--inspect-after-failure start python shell after failure
--bdd-xml write BDD XML result file after run
--bdd-xml=<bddxml> write BDD XML result file after run
--no-ansi print features without any ANSI sequences (like colors, line jump)
--no-line-jump print features without line jumps (overwriting steps)
--write-steps-once does not rewrite the steps (this option only makes sense in combination with the --no-ansi flag)
Expand Down

0 comments on commit ca06b7e

Please sign in to comment.