File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,10 @@ def get_status(exception):
8686
8787def step_status_details (result ):
8888 if result .exception :
89- return StatusDetails (message = format_exception (type (result .exception ), result .exception ),
90- trace = format_traceback (result .exc_traceback ))
89+ # workaround for https://github.com/behave/behave/pull/616
90+ trace = result .exc_traceback if type (result .exc_traceback ) == list else format_traceback (result .exc_traceback )
91+ return StatusDetails (message = format_exception (type (result .exception ), result .exception ), trace = trace )
92+
9193 elif result .status == 'undefined' :
9294 message = '\n You can implement step definitions for undefined steps with these snippets:\n \n '
9395 message += make_undefined_step_snippet (result )
Original file line number Diff line number Diff line change @@ -20,11 +20,37 @@ commands=
2020 rm -rf {envtmpdir}/*
2121 behave -f allure_behave.formatter:AllureFormatter -o {envtmpdir}/allrue-result -f pretty {posargs: ./features}
2222
23+ [testenv:xrg-eparallel]
24+ # https://github.com/behave/behave/pull/616
25+ # https://github.com/allure-framework/allure-python/issues/321
26+ passenv = HOME
27+
28+ basepython = python3.6
29+
30+ setenv =
31+ TEST_TMP ={envtmpdir}
32+ ALLURE_INDENT_OUTPUT =yep
33+
34+ whitelist_externals = rm
35+
36+ deps =
37+ {distshare}/allure-python-commons-2*.zip
38+ {distshare}/allure-python-commons-test-2*.zip
39+
40+ commands =
41+ pip uninstall -y behave
42+ pip install git+git://github.com/behave/behave.git@refs/pull/616/head
43+ rm -rf {envtmpdir}/*
44+ behave --processes 3 \
45+ --parallel-element feature \
46+ -f allure_behave.formatter:AllureFormatter \
47+ -o {envtmpdir}/allrue-result \
48+ -f pretty {posargs: ./features}
2349
2450[testenv:behave-master]
2551passenv = HOME
2652
27- basepython = python3.5
53+ basepython = python3.6
2854
2955setenv =
3056 TEST_TMP ={envtmpdir}
You can’t perform that action at this time.
0 commit comments