Skip to content

fix: assert_that_code does not highlight diffs in failures#30

Merged
haraldmaida merged 1 commit into
mainfrom
fix/assert-that-code-does-not-highlight-diffs
Apr 26, 2025
Merged

fix: assert_that_code does not highlight diffs in failures#30
haraldmaida merged 1 commit into
mainfrom
fix/assert-that-code-does-not-highlight-diffs

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

When asserting that code panics using the macro assert_that_code! or function assert_that_code() the differences in the panic message are not highlighted on failed assertion.

The function assert_that_code has been fixed to set the diff format according the configured mode.

@haraldmaida haraldmaida added the bug Something isn't working label Apr 26, 2025
@haraldmaida haraldmaida linked an issue Apr 26, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.07%. Comparing base (8db9340) to head (fc72abf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
+ Coverage   94.05%   94.07%   +0.02%     
==========================================
  Files          24       24              
  Lines        2338     2347       +9     
  Branches     2338     2347       +9     
==========================================
+ Hits         2199     2208       +9     
  Misses        133      133              
  Partials        6        6              

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

@haraldmaida haraldmaida self-assigned this Apr 26, 2025
@haraldmaida haraldmaida merged commit 9117607 into main Apr 26, 2025
18 checks passed
@haraldmaida haraldmaida deleted the fix/assert-that-code-does-not-highlight-diffs branch April 26, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assert_that_code does not highlight diffs in assertion failures

1 participant