allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Package name wrong on windows

Open aborovmind opened this issue 9 years ago • 0 comments

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:

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 /

aborovmind avatar Sep 12 '17 11:09 aborovmind