Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions gcovr.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Newer versions of gcovr have strict function merging by default, which
# can cause issues with header-only functions or macros (like in jsontest.h).
# 'separate' mode keeps them distinct, fixing the GcovrMergeAssertionError.
merge-mode-functions = separate

# --- Filtering ---
# Only include the library sources in the coverage report.
# This ensures coverage stats reflect the library quality and ignores test code.
filter = src/lib_json/
filter = include/json/

# Exclude the build directory to avoid processing generated files
exclude-directories = build

# --- Noise Reduction ---
# Ignore branches that are generated by the compiler (e.g., exception handling)
# This drastically reduces "false positives" for missing branch coverage.
exclude-throw-branches = yes

# --- CI Visibility ---
# Print a small summary table to the console logs.
print-summary = yes
Loading