lettuce icon indicating copy to clipboard operation
lettuce copied to clipboard

Outlines table is not ordered as in feature file in junit report

Open jfroco opened this issue 10 years ago • 1 comments

I have this outline table in my feature file

| url | title | text | | http://pythonhosted.org/ | Python | KKKK | | https://www.youtube.com/?gl=CL&hl=es-419 | YouTube | language |

In the junit reports the columns are not in the same order.

@name:| http://pythonhosted.org/ | KKKK | Python |

I corrected this by changing outlines from a dict to a OrderedDict: https://github.com/gabrielfalcao/lettuce/pull/474

jfroco avatar Dec 30 '14 03:12 jfroco

@jfroco PY3-fork takes care of this issue Python 3 support

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
x = dict()
x['b'] = 1    
x['a'] = 2
x['d'] = 3
x['c'] = 4
from pprint import pprint
pprint(x)
{'a': 2, 'b': 1, 'c': 4, 'd': 3}
x.keys()
dict_keys(['b', 'a', 'd', 'c'])

sgpy avatar Feb 14 '19 14:02 sgpy