xunit dies on undefined steps #242

Closed
SystemParadox opened this Issue Mar 28, 2012 · 1 comment

Comments

Projects
None yet
3 participants
Contributor

SystemParadox commented Mar 28, 2012

The xunit output currently dies if it encounters an undefined step:

My updated error handling reveals the following:

File "/home/simon/lettuce/lettuce/plugins/xunit_output.py", line 56, in create_test_case_step
    tc.setAttribute("time", str(total_seconds((datetime.now() - step.started))))
AttributeError: 'Step' object has no attribute 'started'

adw0rd commented Dec 11, 2012

Thank you! it solved my problem, I would like that in the new version of the patch was!

@adw0rd adw0rd added a commit to adw0rd/lettuce that referenced this issue Dec 11, 2012

@adw0rd adw0rd Fixes from issues #242 and #197 (AttributeError: 'Step' object has no…
… attribute 'started')
4de85eb

@enewton enewton pushed a commit to enewton/lettuce that referenced this issue Dec 11, 2012

enewton Fix for issue #242 "xunit dies on undefined steps" f5042fc

@gabrielfalcao gabrielfalcao added a commit that referenced this issue Dec 12, 2012

@gabrielfalcao gabrielfalcao Merge pull request #303 from enewton/master
Fix for issue #242 "xunit dies on undefined steps" WITH TESTS!
0b2fa47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment