PY-14219: explicitly unsupport junit behave reported

This commit is contained in:
Ilya.Kazakevich
2016-01-13 00:29:21 +03:00
parent ed27ad6d45
commit 4f2de08c9b
+3
View File
@@ -232,6 +232,9 @@ if __name__ == "__main__":
command_args = list(filter(None, sys.argv[1:]))
if command_args:
if "--junit" in command_args:
raise Exception("--junit report type for Behave is unsupported in PyCharm. \n "
"See: https://youtrack.jetbrains.com/issue/PY-14219")
_bdd_utils.fix_win_drive(command_args[0])
(base_dir, scenario_names, what_to_run) = _bdd_utils.get_what_to_run_by_env(os.environ)