Skip to content

Closes #5275 limit coverage reporting to the arkouda package and exclude tests - #5276

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5275_Limit_coverage_reporting_to_the_arkouda_package_and_exclude_tests
Jan 12, 2026
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5275_Limit_coverage_reporting_to_the_arkouda_package_and_exclude_tests

Conversation

@ajpotts

@ajpotts ajpotts commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

Scope Coverage to Production Code (arkouda/) Only

Summary

This PR updates coverage configuration to measure coverage only for the arkouda/ production package, excluding the tests/ directory and other non-actionable files. This yields a more accurate and stable coverage signal focused on real library code paths.

Motivation

  • Coverage is intended to measure how well production code is exercised, not how well tests cover themselves.
  • Including tests/ artificially inflates coverage, adds noise from fixtures/helpers, and obscures real gaps.
  • __init__.py files often contain import-only logic and are not meaningfully testable.

Key Changes

  • Restrict pytest-cov to arkouda/ via --cov=arkouda
  • Exclude __init__.py files from coverage reporting
  • Remove explicit tests/* paths from coverage omit list
  • Added alignment verification test coverage for dtype behavior

Benefits

  • Coverage numbers reflect true production readiness
  • Avoids chasing meaningless 100% coverage on import-only files
  • Reduces CI noise and future maintenance burden
  • Aligns Arkouda with common best practices in scientific Python projects

Notes

  • Tests are still fully executed; they are simply not counted toward coverage.
  • This change does not reduce test rigor—only improves coverage signal quality.

Closes #5275 limit coverage reporting to the arkouda package and exclude tests

@ajpotts
ajpotts force-pushed the 5275_Limit_coverage_reporting_to_the_arkouda_package_and_exclude_tests branch from a4421e0 to 489ad10 Compare January 9, 2026 16:06
@ajpotts
ajpotts force-pushed the 5275_Limit_coverage_reporting_to_the_arkouda_package_and_exclude_tests branch from 489ad10 to 2ff84c3 Compare January 9, 2026 16:07

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread .coveragerc Resolved
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@8a95e0c). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5276   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         4           
  Lines           ?        63           
  Branches        ?         0           
========================================
  Hits            ?        63           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Sentry.
📢 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.

@ajpotts
ajpotts marked this pull request as ready for review January 9, 2026 18:47

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Jan 12, 2026
Merged via the queue into Bears-R-Us:main with commit 4a6ec65 Jan 12, 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.

Limit coverage reporting to the arkouda package and exclude tests

4 participants