Skip to content

Test lazy execution across deterministic metrics - #463

Merged
aaronspring merged 3 commits into
xarray-contrib:mainfrom
Kkkakania:test/lazy-metrics
Sep 21, 2026
Merged

aaronspring merged 3 commits into
xarray-contrib:mainfrom
Kkkakania:test/lazy-metrics

Conversation

@Kkkakania

Copy link
Copy Markdown
Contributor

Closes #250.

This adds a parameterized regression test covering every deterministic metric in the skip-NaN suite. The test installs a scheduler that raises on any Dask execution, calls each metric with chunked inputs, and verifies the result remains a Dask collection.

Validation:

  • pytest -q xskillscore/tests/test_skipna_functionality.py (64 passed)
  • pre-commit run --files xskillscore/tests/test_skipna_functionality.py

@Kkkakania
Kkkakania marked this pull request as ready for review August 9, 2026 10:15
@aaronspring aaronspring self-assigned this Sep 21, 2026
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.52%. Comparing base (e457985) to head (4dbdc3e).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #463      +/-   ##
==========================================
- Coverage   94.57%   94.52%   -0.06%     
==========================================
  Files          27       27              
  Lines        2841     2847       +6     
==========================================
+ Hits         2687     2691       +4     
- Misses        154      156       +2     

☔ 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.

@aaronspring
aaronspring merged commit 2676054 into xarray-contrib:main Sep 21, 2026
4 of 5 checks passed
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.

test chunked raise computation

2 participants