allure-python: allure.environment is missing in allure.py
I’m submitting a …
- bug report
- feature request
- support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Based on documentation here to apply some environment configurations we should use allure.environment(report=‘Allure report’, browser=u’Я.Браузер’) syntax. But in allure.py environment is missing. Before we have to use some environment.properties file in report folder to apply variables to the report. New functionality is missing. Content of allure.py:
from allure_commons._allure import label
from allure_commons._allure import severity
from allure_commons._allure import tag
from allure_commons._allure import epic, feature, story
from allure_commons._allure import link
from allure_commons._allure import issue, testcase
from allure_commons._allure import Dynamic as dynamic
from allure_commons._allure import step
from allure_commons._allure import attach
from allure_commons.types import Severity as severity_level
from allure_commons.types import AttachmentType as attachment_type
__all__ = [
'label',
'severity',
'tag',
'epic'
'feature',
'story',
'link',
'issue',
'testcase',
'step'
'dynamic'
'severity_level',
'attach',
'attachment_type'
]
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Allure version: 2.2.1
- Test framework: pytest@3.5
- Allure adaptor: allure-pytest@2.1.0b1
Other information
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 15
- Comments: 16 (2 by maintainers)
My implementation of the fixture for adding information to the Environment widget:
Example of usage:
As workaround it’s possible to create
environment.xml
and put it toalluredir
after all tests executions finished. For pytest I have written next code:Hope this will be helplul)
+1
I made a ticket also with this not working. +1