Open svenevs opened 1 year ago
Simple solution: Tell pytest to xfail that test if run locally on Windows.
Or I guess use the magic \\?\ shenangians
Won't work. I remember the issue was with Doxygen itself, not in the Python scripts. Without a workaround the issue would need to be fixed upstream.
Ok good points, thanks! I think local xfail + a quick check in tox.ini
printing a warning if that seems likely (so they know why).
Exhale could also choose different test directory names / paths to stage tests in. That sounds like a long term wish list item with the brief "fix it for local devs" being the priority.
Exhale could also choose different test directory
Using a temp directory should work. Those are usually not nested too deeply. Using tmp_path
from Pytest for example. It's something I could try later.
In other cases, one can also give a reason with xfail:
@pytest.mark.xfail(sys.platform == "win32", reason="Paths my be too long for Windows.")
See discussion in #175. Windows users struggle.
Might be able to add a check in for developers that checks if they are on windows and if so look at where they have cloned and make sure it is not too long (encourage them to clone to
C:\dev
or something).Or I guess use the magic
\\?\
shenangians? (Don't want to go down that road again, exhale can handle longer paths than sphinx, I'm not the full bottleneck).I do generally treat this as a "not my problem" aka blame windows issue. While it is also true that this prevents windows users from contributing as easily. Some kind of balance should be found.