-
Notifications
You must be signed in to change notification settings - Fork 121
Improve coverage accuracy #979
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
Improve coverage accuracy #979
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR aims to improve coverage accuracy by making two simple adjustments: disabling compiler optimizations during coverage builds and modifying Fypp preprocessor settings to better preserve source code structure for coverage analysis.
- Adds
-O0flag to disable optimizations when coverage is enabled with GNU Fortran compiler - Updates Fypp preprocessor to use extended line length and different line numbering mode
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Trying to improve coverage accuracy via a couple of simple additions.
PR Type
Enhancement
Description
Add
-O0flag to disable optimization for coverageConfigure Fypp preprocessor with extended line length
Enable no-continuation-lines mode for better coverage tracking
Diagram Walkthrough
File Walkthrough
CMakeLists.txt
Enhanced coverage configuration and preprocessor settingsCMakeLists.txt
-O0compiler flag for GNU Fortran coverage builds