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

test: Remove clearTestState for ViewHierarchyTests #3940

Merged
merged 1 commit into from May 10, 2024

Conversation

philipphofmann
Copy link
Member

The SentryViewHierarchyTests only need to reset the SentryDependencyContainer and not reset the whole global test state.

#skip-changelog

The SentryViewHierarchyTests only need to reset the
SentryDependencyContainer and not reset the whole global test state.
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.622%. Comparing base (c379c5e) to head (3d69cd1).

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #3940       +/-   ##
=============================================
- Coverage   90.663%   90.622%   -0.042%     
=============================================
  Files          581       582        +1     
  Lines        45434     45523       +89     
  Branches     16169     16225       +56     
=============================================
+ Hits         41192     41254       +62     
- Misses        4172      4199       +27     
  Partials        70        70               
Files Coverage Δ
Tests/SentryTests/SentryViewHierarchyTests.swift 91.911% <100.000%> (ø)

... and 24 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c379c5e...3d69cd1. Read the comment docs.

Copy link
Contributor

@brustolin brustolin left a comment

Choose a reason for hiding this comment

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

Code looks good. CI is not happy. Probably flaky.

@philipphofmann philipphofmann merged commit 9537eaf into main May 10, 2024
48 of 52 checks passed
@philipphofmann philipphofmann deleted the test/view-hierarchy-test-state branch May 10, 2024 06:47
philipphofmann added a commit that referenced this pull request May 10, 2024
The SentryViewHierarchyTests only need to reset the
SentryDependencyContainer and not reset the whole global test state.
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.

None yet

2 participants