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: use XCTUnwrap instead of force unwraps or unchecked array access #3589

Merged

Conversation

armcknight
Copy link
Member

@armcknight armcknight commented Jan 30, 2024

I changed these while investigating a broken assumption that were crashing the test run instead of just failing these cases. Helps with #3576.

#skip-changelog

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (1c96132) 89.289% compared to head (79a413d) 89.266%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #3589       +/-   ##
=============================================
- Coverage   89.289%   89.266%   -0.024%     
=============================================
  Files          529       529               
  Lines        57737     57920      +183     
  Branches     20412     20734      +322     
=============================================
+ Hits         51553     51703      +150     
- Misses        5276      5302       +26     
- Partials       908       915        +7     
Files Coverage Δ
...ns/Performance/SentryPerformanceTrackerTests.swift 99.680% <100.000%> (+0.001%) ⬆️
...ests/SentryTests/Transaction/SentrySpanTests.swift 99.389% <100.000%> (+0.006%) ⬆️
...ts/SentryTests/Transaction/SentryTracerTests.swift 98.656% <95.000%> (-0.237%) ⬇️

... and 71 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 1c96132...79a413d. Read the comment docs.

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

Thanks 💪. CI needs some fixes.

@armcknight armcknight changed the base branch from armcknight/feat/launch-profiling to main February 2, 2024 04:42
    avoids the test process crashing, and instead marks them as
    failures so you can get the idea about all the tests that are
    currently failing, instead of only the next one that crashes the
    test run
@armcknight armcknight force-pushed the armcknight/test/convert-force-unwraps-to-XCTUnwrap branch from 63b0321 to 79a413d Compare February 2, 2024 04:43
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

LGTM

@armcknight armcknight merged commit ee8b48f into main Feb 3, 2024
52 of 53 checks passed
@armcknight armcknight deleted the armcknight/test/convert-force-unwraps-to-XCTUnwrap branch February 3, 2024 01:04
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.

2 participants