allure-python
allure-python copied to clipboard
Package name wrong on windows
I'm submitting a ...
- [x] 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?
Test package name on windows platform not replaced os.sep on dot
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Then create test full name for report. If gather reports in one (from different platform), take different tests, but isn't
What is the expected behavior?
Test package path on windows platform will equal as on unix platforms
Please tell us about your environment:
- Allure version: 2.3.5
- Test framework: [email protected]
- Allure adaptor: [email protected]
Other information
in module allure_pytest.utils.py:57
def allure_package(nodeid):
parts = nodeid.split('::')
path = parts[0].split('.')[0]
return path.replace(os.sep, '.')
on unix os.sep = '/'
on winows os.sep = '\\'
but nodeid on both platform contain only /