I am trying out this library on Windows and have gotten into a little trouble with paths. In doing a test-report:: directive and passing a unix-style relative path for :file:
.. test-report:: Unit Test Results
:id: REPORT
:file: ../project/unit-test-results/project-unit-test-results.xml
I'm seeing the following rendered out:
Test file: C:Usersusernamecodesprojectdoc../project/unit-test-results/unit-test-results.xml
Template used: C:Usersusernamecodesvenvsatom39libsite-packagessphinxcontribtest_reportsdirectives/test_report_template.txt
Statistics
Test suites: 0
...
A similar problem happens when I give a windows-style relative path for :file:, including:
I am trying out this library on Windows and have gotten into a little trouble with paths. In doing a
test-report::
directive and passing a unix-style relative path for:file:
I'm seeing the following rendered out:
A similar problem happens when I give a windows-style relative path for
:file:
, including::file: ..\\..\\project\\unit-test-results\\project-unit-test-results.xml
:file: ..\project\unit-test-results\project-unit-test-results.xml
If this used pathlib rather than
os.path
I believe it might work better? Are you interested in a PR along theses lines?