Skip to content

Improve snapshot mismatch reporting#127

Merged
AKuederle merged 2 commits intomainfrom
improve-snapshot-mismatch-reporting
Mar 11, 2026
Merged

Improve snapshot mismatch reporting#127
AKuederle merged 2 commits intomainfrom
improve-snapshot-mismatch-reporting

Conversation

@AKuederle
Copy link
Member

Summary

  • wrap snapshot comparison failures in a snapshot-specific assertion with cleaner pytest output
  • include snapshot file paths and detailed pandas/numpy mismatch details in failure messages
  • add integration tests covering dataframe and string mismatch reporting

Testing

  • .venv/bin/pytest tests/test_misc/test_snapshot_testsuite.py tests/test_misc/test_snapshot_failure_reporting.py -q
  • .venv/bin/ruff check src/tpcp/testing/_regression_utils.py tests/test_misc/test_snapshot_failure_reporting.py

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 18.60465% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.87%. Comparing base (2574782) to head (5d328eb).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/tpcp/testing/_regression_utils.py 18.60% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
- Coverage   78.67%   77.87%   -0.80%     
==========================================
  Files          29       29              
  Lines        2513     2545      +32     
==========================================
+ Hits         1977     1982       +5     
- Misses        536      563      +27     

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

@AKuederle AKuederle merged commit 27f4bde into main Mar 11, 2026
5 of 6 checks passed
@AKuederle AKuederle deleted the improve-snapshot-mismatch-reporting branch March 11, 2026 07:59
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