You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on modularization. But the tests fail on Windows! It seems when the test Makefiles invoke the gcovr script, it is using this sys.path for our Python 3 tests:
./subdir/B/testcase
../../../scripts/gcovr -r subdir -d -x -o coverage.xml
Could not find gcovr modules in:
C:\projects\gcovr\scripts
C:\windows\SYSTEM32\python27.zip
C:\Python27\DLLs
C:\Python27\lib
C:\Python27\lib\plat-win
C:\Python27\lib\lib-tk
C:\Python27
C:\Python27\lib\site-packages
Traceback (most recent call last):
File "../../../scripts/gcovr", line 44, in <module>
from gcovr.app import parse_arguments
ImportError: No module named gcovr.app
make: *** [Makefile:16: xml] Error 1
So gcovr was installed using Python 3, but we try to run it under Python 2 :/
And indeed, the appveyor.yml selects the Python version through an env variable:
I wanted to get some coverage information for gcovr itself and for that, starting moving things around a bit. I just ran into an issue with python 3.6 on Windows which has no reason to be a result of my work and is probably a pre-existing issue, thus confirming your analysis.
I think before modularization is done, it might be a good thing to know what's the current gcovr status (and therefore, what's likely to break without anyone knowing).
I will open a PR for this work which will most probably open some discussions (and which might give you ideas on the issue you're seeing).
I am currently working on modularization. But the tests fail on Windows! It seems when the test Makefiles invoke the gcovr script, it is using this
sys.path
for our Python 3 tests:So gcovr was installed using Python 3, but we try to run it under Python 2 :/
And indeed, the appveyor.yml selects the Python version through an env variable:
In the Makefile, the script is invoked like this, without using that env variable:
I assume the tests should be updated to explicitly run the selected Python, e.g.
My questions:
The text was updated successfully, but these errors were encountered: