8000 Handle option `--version` before parsing config file. by Spacetown · Pull Request #696 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handle option --version before parsing config file. #696

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

Merged

Conversation

Spacetown
Copy link
Member

If a gcovr.cfg is in the project directory and you run gcovr --version the configuration file is read first. This can result in an error.

Closes #695

@Spacetown Spacetown added this to the Upcoming release milestone Nov 30, 2022
@codecov
Copy link
codecov bot commented Nov 30, 2022

Codecov Report

Base: 95.22% // Head: 95.34% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (d5700ab) compared to base (c83215a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   95.22%   95.34%   +0.11%     
==========================================
  Files          24       24              
  Lines        3498     3498              
  Branches      615      615              
==========================================
+ Hits         3331     3335       +4     
+ Misses         95       93       -2     
+ Partials       72       70       -2     
Flag Coverage Δ
ubuntu-20.04 94.25% <100.00%> (+0.11%) ⬆️
windows-2019 95.02% <100.00%> (+0.11%) ⬆️

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

Impacted Files Coverage Δ
gcovr/__main__.py 94.73% <100.00%> (ø)
gcovr/gcov.py 76.00% <0.00%> (+1.45%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Spacetown Spacetown merged commit 7111438 into gcovr:master Dec 1, 2022
@Spacetown Spacetown deleted the check_cmd_line_before_parsing_nofig_files branch December 1, 2022 19:39
D-Walther pushed a commit to D-Walther/gcovr that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting version throws exception with invalid path in configuration file
2 participants
0