Skip to content

Fix flaky WireframeUtils test#1208

Merged
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/fix-flaky-wireframe-utils-test
Jan 2, 2023
Merged

Fix flaky WireframeUtils test#1208
0xnm merged 1 commit into
feature/sdkv2from
nogorodnikov/fix-flaky-wireframe-utils-test

Conversation

@0xnm

@0xnm 0xnm commented Dec 28, 2022

Copy link
Copy Markdown
Member

What does this PR do?

This change fixes flaky M return false W checkIsValidWireframe(){ covered by another with solid background } test.

Test was failing because there was a possibility to generate wireframe without background color, so it has isOpaque == false.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested a review from a team as a code owner December 28, 2022 15:21
@codecov-commenter

codecov-commenter commented Dec 28, 2022

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.59%. Comparing base (932cecb) to head (a995ec2).

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/sdkv2    #1208   +/-   ##
==============================================
  Coverage          82.59%   82.59%           
==============================================
  Files                351      351           
  Lines              12480    12475    -5     
  Branches            2058     2056    -2     
==============================================
- Hits               10307    10303    -4     
- Misses              1533     1535    +2     
+ Partials             640      637    -3     

see 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

)

val fakeRandomParents: List<MobileSegment.Wireframe> = forge.aList<MobileSegment.Wireframe> {
val fakeRandomParents: List<MobileSegment.Wireframe> = forge.aList {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I fixed this also in my current PR

@0xnm
0xnm merged commit f8fbdd1 into feature/sdkv2 Jan 2, 2023
@0xnm
0xnm deleted the nogorodnikov/fix-flaky-wireframe-utils-test branch January 2, 2023 10:28
@xgouchet xgouchet added this to the 1.17.0 milestone Dec 13, 2023
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.

4 participants