A particular feature file produces strange error #145

Closed
dmugtasimov opened this Issue May 28, 2011 · 4 comments

Comments

Projects
None yet
4 participants

Steps

  1. Create features/delete_application.feature
    Feature: Delete Application
    As a Platform User
    I want to delete application package
    So that it will not utilize system resources any more

Scenario: System should be able to delete application package that was uploaded before
Given I have uploaded application package of "any" with known package id
2. Run lettuce: lettuce -v 3 --with-xunit

Expected
Lettuce prints out code snippets for delete_application.feature

Actual
$ lettuce -v 3 --with-xunit

Feature: Delete Application # features/delete_application.feature:1
As a Platform User # features/delete_application.feature:2
I want to delete application package # features/delete_application.feature:3
So that it will not utilize system resources any more # features/delete_application.feature:4

Scenario: System should be able to delete application package that was uploaded before # features/delete_application.feature:6
Given I have uploaded application package of "any" with known package id # features/delete_application.feature:7 (undefined)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/lettuce/registry.py", line 100, in call_hook
callback(_args, *_kw)
File "/usr/local/lib/python2.6/dist-packages/lettuce/plugins/xunit_output.py", line 49, in create_test_case
tc.setAttribute("time", str(total_seconds((datetime.now() - step.started))))
AttributeError: 'Step' object has no attribute 'started'

Info
The problem is that other feature file are not executed after that.

It seems that error occurs if you want to produce xunit report against feature-files with not implemented steps.

mitgr81 commented Oct 27, 2011

This issue is duplicated at #172

Contributor

SystemParadox commented Mar 30, 2012

Fixed by #243

Collaborator

adaschevici commented Feb 4, 2014

Duplicate, fixed.

adaschevici closed this Feb 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment