Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix coverage report for cmake / ninja combination #453

Merged
merged 7 commits into from Jan 22, 2021

Conversation

theKBro
Copy link
Contributor

@theKBro theKBro commented Jan 14, 2021

path to sourcefile is given relative from object dictionary

@codecov
Copy link

codecov bot commented Jan 14, 2021

Codecov Report

Merging #453 (c590416) into master (a51a7fe) will increase coverage by 0.41%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #453      +/-   ##
==========================================
+ Coverage   95.08%   95.50%   +0.41%     
==========================================
  Files          20       20              
  Lines        2420     2445      +25     
  Branches      418      420       +2     
==========================================
+ Hits         2301     2335      +34     
+ Misses         54       48       -6     
+ Partials       65       62       -3     
Flag Coverage Δ
ubuntu-18.04 95.00% <75.00%> (?)
windows-2019 95.09% <75.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gcovr/gcov.py 87.79% <75.00%> (+0.43%) ⬆️
gcovr/tests/test_config.py 100.00% <0.00%> (ø)
gcovr/tests/test_gcov_parser.py 100.00% <0.00%> (ø)
gcovr/tests/test_html_generator.py 100.00% <0.00%> (ø)
gcovr/configuration.py 99.28% <0.00%> (+<0.01%) ⬆️
gcovr/workers.py 98.82% <0.00%> (+0.01%) ⬆️
gcovr/coverage.py 99.13% <0.00%> (+0.02%) ⬆️
gcovr/html_generator.py 96.98% <0.00%> (+0.08%) ⬆️
gcovr/tests/test_gcovr.py 92.94% <0.00%> (+0.69%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a51a7fe...c590416. Read the comment docs.

@theKBro
Copy link
Contributor Author

theKBro commented Jan 14, 2021

+1 for someone who knows the repo and is willing to write tests for this :-)

@Spacetown
Copy link
Member

We have a test with CMake. I don't understand your problem?

@theKBro
Copy link
Contributor Author

theKBro commented Jan 15, 2021

I've added an addtional test, but unfortunately my development environment is also windows and thats why I cannot run the tests, the reference dir is copied from the other cmake test but maybe with the tests you understand why the changes are necessary

@theKBro
Copy link
Contributor Author

theKBro commented Jan 15, 2021

Or could you support me on running the test with mingw for windows -> I got a problem on the tests make clean with the rm call

@theKBro
Copy link
Contributor Author

theKBro commented Jan 18, 2021

@Spacetown now I really don't know how to proceed here anymore, could you please help out?

@Spacetown
Copy link
Member

@theKBro I'll try to find a slot to look at this. Please be patient.

@Spacetown Spacetown marked this pull request as draft January 19, 2021 18:33
@Spacetown Spacetown marked this pull request as ready for review January 19, 2021 20:22
@Spacetown Spacetown force-pushed the master branch 2 times, most recently from bf8a420 to 9f53bfb Compare January 19, 2021 20:31
@Spacetown
Copy link
Member

Spacetown commented Jan 19, 2021

@theKBro I've done several changes:

  • Replace the addition of a key to options with the use of the original key in process_gcov_data.
  • Install ninja in Docker container.
  • Run ninja with option verbose to get info about command line and working directory.
  • Add option --object-directory=... to gcovr call.

@Spacetown
Copy link
Member

@theKBro Please can you rebase the branch?

fix format

check if object directory is passed

- added test for cmake and ninja
- cleaned up obj_dir usage

fix options.obj_dir initialization

reenable target clean

install ninja

Install ninja in Docker container.
Call ninja directly to be able to set verbose mode.
Copy link
Member

@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add yourself to the list of contributors and the issue to the changelog.
Why did you remove me as co author? 😢

gcovr/gcov.py Show resolved Hide resolved
gcovr/tests/cmake_oos_ninja/Makefile Outdated Show resolved Hide resolved
Co-authored-by: Michael Förderer <40258682+Spacetown@users.noreply.github.com>
-fix path to toolchain file 
- remove not necessary mkdir
@theKBro
Copy link
Contributor Author

theKBro commented Jan 20, 2021

Please add yourself to the list of contributors and the issue to the changelog.
Why did you remove me as co author? 😢

sry im not used to git, as i'm working with svn...
how to readd you?

Co-authored-by: Michael Förderer <40258682+Spacetown@users.noreply.github.com>
@Spacetown
Copy link
Member

Please add yourself to the list of contributors and the issue to the changelog.
Why did you remove me as co author? 😢

sry im not used to git, as i'm working with svn...
how to readd you?

You did it already by accepting my suggestion. This is done by adding the following line to the commit message:

Co-authored-by: Michael Förderer <40258682+Spacetown@users.noreply.github.com>

theKBro and others added 2 commits January 20, 2021 22:43
return original path if none of the source file guesses exists

Co-authored-by: Michael Förderer <40258682+Spacetown@users.noreply.github.com>
gcovr/gcov.py Outdated Show resolved Hide resolved
@Spacetown Spacetown merged commit bbd97a6 into gcovr:master Jan 22, 2021
@Spacetown Spacetown added this to the 4.3 milestone Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants