Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VisualValidations issue #1589

Conversation

MohabMohie
Copy link
Contributor

Reference image wasn't being read from the correct path in most scenarios causing a false positive or false negative state.

- BREAKING CHANGE: names will now end with the calling class name, and will not include the calling method name.
- This means that one element will have one image no matter how many times you use it within the same calling class.
- How does that impact you? your reference images will be updated after the first test run, and you are encouraged to delete your old reference images.
Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com>
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 34.28571% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 32.29%. Comparing base (203548a) to head (57f6f7d).

Files Patch % Lines
...m/shaft/tools/io/internal/ReportManagerHelper.java 0.00% 7 Missing ⚠️
...rc/main/java/com/shaft/tools/io/ReportManager.java 0.00% 5 Missing ⚠️
src/main/java/com/shaft/cli/FileActions.java 75.00% 4 Missing ⚠️
...m/shaft/validation/internal/ValidationsHelper.java 0.00% 3 Missing ⚠️
...aft/gui/internal/image/ImageProcessingActions.java 0.00% 2 Missing ⚠️
...com/shaft/gui/internal/image/ScreenshotHelper.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1589      +/-   ##
============================================
+ Coverage     26.82%   32.29%   +5.47%     
- Complexity      657      780     +123     
============================================
  Files           111      111              
  Lines          9940     9966      +26     
  Branches        961      966       +5     
============================================
+ Hits           2666     3219     +553     
+ Misses         6812     6203     -609     
- Partials        462      544      +82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MohabMohie MohabMohie merged commit 3ff77c4 into main Apr 11, 2024
41 of 42 checks passed
@MohabMohie MohabMohie deleted the 1588-bug-visual-validation-fails-on-subsequent-runs-with-w-and-h-must-be-0-error-130 branch April 11, 2024 07:41
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.

[Bug]: Visual Validation Fails on Subsequent Runs with "w and h must be > 0" Error #130
1 participant