allure-python
allure-python copied to clipboard
Path to feature file in allure report
I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
I have tests in many directories (many repos, in fact). All get run together for a report we gen in Allure. The report shows the feature name. However, there seems to be no way to display the path to the feature file. Because the tests are in lots of dirs - it is then rather painful to find the right file.
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?
Would love for the plugin to also set the path to feature file in the allure report.
What is the motivation / use case for changing the behavior?
Ease of use for developers and QA folks.
Please tell us about your environment:
- Allure version: 2.1.0
- Test framework: [email protected]
- Allure adaptor: [email protected]
Other information
@rayjlinden as a workaround you can add this hook implementation
import allure
def after_scenario(context, scenario):
uri = "https://github.com/allure-framework/allure-python/tree/master/allure-behave/{filename}".format(filename=scenario.filename)
allure.attach(uri, name="test location", attachment_type=allure.attachment_type.URI_LIST)
@rayjlinden but the best solution is to provide suite labels for behave reports. So please do not close this issue
I don't think the workaround works anymore.
