Improve coverage accuracy#979
Conversation
There was a problem hiding this comment.
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