pytest-dev/pytest-html

[Windows] pytest-html doesn't correctly parse the path given with --html option

harmin-parra opened this issue · 1 comments

OS: Windows 10
Python : 3.12.0

I want the report in a subfolder of the project

Execute a test with these options
--html=report\report.html --css=style.css

Actual result
HTML report filename: reportreport.html

Expected result
HTML report filename: report\report.html

pip list

attrs                 23.1.0
certifi               2023.7.22
cffi                  1.16.0
colorama              0.4.6
h11                   0.14.0
idna                  3.4
iniconfig             2.0.0
Jinja2                3.1.2
MarkupSafe            2.1.3
outcome               1.3.0.post0
packaging             23.2
pip                   23.3.1
pluggy                1.3.0
pycparser             2.21
PySocks               1.7.1
pytest                7.4.3
pytest-html           4.1.0
pytest-metadata       3.0.0
pytest-selenium-auto  1.3.0
pytest-webtest-extras 0.0.1rc1
PyYAML                6.0.1
selenium              4.15.2
setuptools            68.2.2
sniffio               1.3.0
sortedcontainers      2.4.0
trio                  0.23.1
trio-websocket        0.11.1
urllib3               2.0.7
wheel                 0.41.3
wsproto               1.2.0

The correct syntax is --html=report/report.html