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

StoreKit1WrapperTests: avoid using Bool.random to fix flaky code coverage #2258

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

NachoSoto
Copy link
Contributor

@NachoSoto NachoSoto commented Feb 2, 2023

Fixes https://app.codecov.io/gh/RevenueCat/purchases-ios/pull/2257

Screenshot 2023-02-02 at 11 48 14

Depending on this value, we were evaluating a different string.

@NachoSoto NachoSoto added the test Adding missing tests or correcting existing tests label Feb 2, 2023
@NachoSoto NachoSoto requested a review from a team February 2, 2023 19:38
@NachoSoto NachoSoto changed the title Code coverage: fix flaky results by avoiding warning log StoreKit1WrapperTests: avoid using Bool.random to fix flaky code coverage Feb 2, 2023
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #2258 (3b59a9a) into main (7985b03) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2258      +/-   ##
==========================================
+ Coverage   85.85%   85.99%   +0.14%     
==========================================
  Files         183      183              
  Lines       12125    12125              
==========================================
+ Hits        10410    10427      +17     
+ Misses       1715     1698      -17     
Impacted Files Coverage Δ
Sources/Logging/Strings/StoreKitStrings.swift 91.17% <0.00%> (+1.47%) ⬆️
Sources/Logging/Strings/NetworkStrings.swift 100.00% <0.00%> (+1.63%) ⬆️
Sources/Support/ManageSubscriptionsHelper.swift 70.10% <0.00%> (+2.06%) ⬆️
Sources/Networking/HTTPClient/HTTPClient.swift 98.20% <0.00%> (+4.31%) ⬆️
...s/Logging/Strings/ManageSubscriptionsStrings.swift 81.25% <0.00%> (+6.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@NachoSoto NachoSoto merged commit 4b2665c into main Feb 2, 2023
@NachoSoto NachoSoto deleted the coverage-flaky-results branch February 2, 2023 23:04
NachoSoto pushed a commit that referenced this pull request Feb 8, 2023
**This is an automatic release.**

### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `738f255` to `9255366`
(#2264) via dependabot[bot] (@dependabot[bot])
* Update `Gemfile.lock` (#2254) via Cesar de la Vega (@vegaro)
### Other Changes
* `HTTPClient`: added support for sending `X-Nonce` (#2214) via
NachoSoto (@NachoSoto)
* `Configuration`: added (`internal` for now) API to load public key
(#2215) via NachoSoto (@NachoSoto)
* Replaced `Any` uses for workaround with `Box` (#2250) via NachoSoto
(@NachoSoto)
* `HTTPClientTests`: fixed failing test with missing assertions (#2262)
via NachoSoto (@NachoSoto)
* `HTTPClientTests`: refactored tests to use `waitUntil` (#2257) via
NachoSoto (@NachoSoto)
* PurchaseTester: Add Receipt Inspector UI (#2249) via Andy Boedo
(@aboedo)
* Adds dependabot (#2259) via Cesar de la Vega (@vegaro)
* `StoreKit1WrapperTests`: avoid using `Bool.random` to fix flaky code
coverage (#2258) via NachoSoto (@NachoSoto)
* `IntroEligibilityCalculator`: changed logic to handle products with no
subscription group (#2247) via NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Adding missing tests or correcting existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants