-
Notifications
You must be signed in to change notification settings - Fork 283
After updating from 4.1 to 4.2, gcovr fails to generate files as before update #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service< 8000 /a> and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am quite confused by this setup, both by how things used to work and how things subsequently broke.
Please provide the following information so that I can understand this setup:
It would also be helpful if you can run gcovr in --verbose mode, as that provides lots of info about which .gcda files are found and which source files are excluded by some filter. |
Sorry for the delay, work was very busy. To dispel your confusions:
The other four points:
I have also created log-4.1.txt and log-4.2.txt. They have redacted to protect the innocent, but the essential parts have been left. |
Friendly reminder to look into this. :) |
It's difficult to reprocuce without a complete examle. I've tested a little bit with the informations.
gives an empty XML file. This is because the coverage files are generated i
8000
n the Removing Also changing to:
gives a file with data. |
@Spacetown The build environment is depending on a wheel release package like provided on PyPi. How do I create one? Or can you attach one for me? |
@Verequus I had to look for it first this because I've never done this before.
This will create the wheel file in the |
I've tried now to create this distro, but setup.py doesn't seem to support bdist_wheel as parameter. There are a number of other options related to bdist, but none seem to be relevant. |
Can you post the error message? I've tried the command on MacOs and the wheel file was generated. |
The "python setup.py --help-commands" results in help.txt. I run Win 10 with Python 3.6.8, if that matters. I don't think it makes really much sense to investigate why it doesn't work for me, if I only need the wheel package you can create. Please attach it here. |
As I mentioned, I'm using a Mac. The wheel is a binary distribution depending on the OS and the used python.
|
Managed to get around doing that test, but no change to the results when running the UT job. |
@Verequus Can you upload a smal make with sources to reproduce the error? |
So by chance a colleague of mine figured it out. We had to add a new parameter. From only (irrelevant other parameters redacted)
to
Leaving this for posterity. |
I've been trying to update the gcovr module from 4.1 (which works fine) to 4.2, but that doesn't work correctly. The setup is basically like this: For every module we want to run gcovr the folder structure is like:
Inside UT the makefile is called both to compile the files as well to execute the tests. gcovr is called from this directory with this:
where source_dir = "src" and "module_name" is the name of the module.
Since 4.2 changed the meaning of "--html" and "--xml", the call like this fails already. So I reordered the calls to this:
This ends up with an empty coverage.html, where instead the directory reference from "../../src" is "." instead and the source file to be analyzed neither longer appears in the main file nor as its own file (see in
coverage.zip each html file respectively - the xml files are similar).
If I try to use the "--html" and "--xml" parameters by adding "coverage.html"/"coverage.xml", the result does not change, only a warning about ignoring "--output" appears.
What do I have to do to make this work again? Or is this actually a bug in gcovr 4.2?
The text was updated successfully, but these errors were encountered: