Skip to content

Conversation

A-Alii
Copy link

@A-Alii A-Alii commented Sep 21, 2025

I have implemented an enhanced version of SoftAssert (see code below) that:

  • Overrides onAssertFailure()
  • Captures the stack trace of the failing assertion
  • Prints it in a standard Java stack trace format (e.g., at package.Class.method(File.java:lineNumber))
  • This makes the failure lines clickable inside IDEs and CI logs.

This enhancement would greatly improve the developer experience when debugging test failures.

Copy link

codecov bot commented Sep 21, 2025

Codecov Report

❌ Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.55%. Comparing base (653546d) to head (e6d6c8c).

Files with missing lines Patch % Lines
src/main/java/constants/CustomSoftAssert.java 88.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2103      +/-   ##
============================================
- Coverage     56.36%   54.55%   -1.82%     
+ Complexity     1534     1490      -44     
============================================
  Files           118      119       +1     
  Lines         10834    10859      +25     
  Branches       1068     1071       +3     
============================================
- Hits           6107     5924     -183     
- Misses         4004     4231     +227     
+ Partials        723      704      -19     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant