allure-framework / allure-pytest

Deprecated, please use https://github.com/allure-framework/allure-python instead
Other
171 stars 83 forks source link

Support tags: HOST, FEATURE and etc via LabelType class #122

Closed misamoylov closed 7 years ago

misamoylov commented 7 years ago

Now supports only TAG attribute from class LabelType `class LabelType(Enum): def str(self): return self.value

FEATURE = 'feature'
STORY = 'story'
SEVERITY = 'severity'
THREAD = 'thread'
HOST = 'host'
TAG = 'tag'`

That I can use like this tag_mark = pytest.allure.label(LabelType.TAG, 'one') request.node.add_marker(tag_mark)

It will be great if i can use also another attributes from LabelType class, like: HOST, STORY and etc.

sseliverstov commented 7 years ago

https://github.com/allure-framework/allure-python/issues/85 https://github.com/allure-framework/allure-python/issues/86