Skip to content

Highlighting differences between expected and actual value#10

Merged
haraldmaida merged 38 commits into
mainfrom
colored-differences-in-failure-output
Apr 14, 2025
Merged

Highlighting differences between expected and actual value#10
haraldmaida merged 38 commits into
mainfrom
colored-differences-in-failure-output

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

Implementation of the feature "colored diffs". Differences between expected and actual value are highlighted in the terminal using colors.

# Conflicts:
#	src/boolean/mod.rs
#	src/float/mod.rs
#	src/length.rs
#	src/predicate/mod.rs
…-yellow` instead of `cvd-colored` and `colored`
…ature `color` - move feature gate inside implementation
…at()` an implementation detail and provide constant `DEFAULT_DIFF_FORMAT` also when feature `colored` is disalbed.
@haraldmaida haraldmaida added the enhancement New feature or request label Apr 14, 2025
@haraldmaida haraldmaida self-assigned this Apr 14, 2025
@haraldmaida haraldmaida linked an issue Apr 14, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2025

Codecov Report

Attention: Patch coverage is 95.90164% with 25 lines in your changes missing coverage. Please review.

Project coverage is 90.84%. Comparing base (65471b8) to head (554647e).

Files with missing lines Patch % Lines
src/colored/mod.rs 86.03% 21 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   89.81%   90.84%   +1.02%     
==========================================
  Files          18       19       +1     
  Lines        1385     1814     +429     
  Branches     1385     1814     +429     
==========================================
+ Hits         1244     1648     +404     
- Misses        137      158      +21     
- Partials        4        8       +4     

☔ 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 merged commit 3d15ada into main Apr 14, 2025
@haraldmaida haraldmaida deleted the colored-differences-in-failure-output branch April 14, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight differences between expected and actual values

1 participant