Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Only first example is reported in xunit #144

Open
dmugtasimov opened this Issue May 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants

Steps

  1. Create features/sample.feature
    Feature: Feature summary here
    Feature description here

Scenario Outline: Scenario 1
Step 1 with ""
Step 2 with ""

Examples:
| param1 | param2 |
| 1.1 | 1.2 |
| 2.1 | 2.2 |
| 3.1 | 3.2 |
2. Create features/sample.py
from lettuce import step

@step(u'Step 1 with "(.*)"')
def step_1_with_group1(step, param):
assert param[-1:] == '1', 'Not expected suffix'

@step(u'Step 2 with "(.*)"')
def step_2_with_group1(step, param):
assert param[-1:] == '2', 'Not expected suffix'
3. Run lettuce: lettuce --with-xunit

Expected
lettucetests.xml contains results for every example (3 in total)

Actual
lettucetests.xml contains results only for first example

Contributor

hupf commented Nov 29, 2011

Same here, scenario outline tests are executed correctly, but XML file contains one first example.

hupf added a commit to atizo/lettuce that referenced this issue Nov 29, 2011

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