Skip to content

Add codecov.yml to exclude generated FIX fields and messages from coverage - #1287

Merged
chrjohn merged 1 commit into
masterfrom
copilot/create-codecov-yaml
Jul 27, 2026
Merged

Add codecov.yml to exclude generated FIX fields and messages from coverage#1287
chrjohn merged 1 commit into
masterfrom
copilot/create-codecov-yaml

Conversation

Copilot AI commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Codecov was attributing JaCoCo coverage data to the golden test resource .java files (e.g. quickfixj-messages/quickfixj-messages-fixlatest/src/test/resources/golden/fixlatest/quickfix/field/) because they share the same package structure as the generated sources — distorting coverage metrics with machine-generated code.

Changes

  • codecov.yml (new, repo root): adds two ignore globs:
    • quickfixj-messages/*/src/test/resources/golden/** — excludes the golden-file .java templates (generated FIX field/message source used only for golden-file comparison tests)
    • **/target/generated-sources/** — excludes any generated FIX source Maven places under target/generated-sources/quickfix/ at build time

@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.36%. Comparing base (1c48bd4) to head (6572617).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1287      +/-   ##
============================================
+ Coverage     70.27%   70.36%   +0.08%     
+ Complexity     2243     2242       -1     
============================================
  Files           163      159       -4     
  Lines          9076     9056      -20     
  Branches       1192     1192              
============================================
- Hits           6378     6372       -6     
+ Misses         2235     2220      -15     
- Partials        463      464       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrjohn
chrjohn marked this pull request as ready for review July 27, 2026 06:22
@chrjohn
chrjohn merged commit e7053a7 into master Jul 27, 2026
14 checks passed
@chrjohn
chrjohn deleted the copilot/create-codecov-yaml branch July 27, 2026 06:22
@chrjohn chrjohn changed the title Add codecov.yml to exclude generated FIX fields and messages from coverage Add codecov.yml to exclude generated FIX fields and messages from coverage Jul 27, 2026
@chrjohn chrjohn added this to the QFJ 3.0.2 milestone Jul 27, 2026
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.

2 participants