Skip to content

Conversation

fire-at-will
Copy link
Contributor

@fire-at-will fire-at-will commented Jul 16, 2025

Description

We were running virtual currency integration tests both with and without the load shedder. However, the load shedder doesn't currently support virtual currencies, so these tests were failing when run for the load shedder integration test app. This PR updates the integration tests so that the virtual currency integration tests don't run for the load shedder integration tests app.

Implementation Details

We are able to accomplish this by:

  • When we're running integration tests through the integration tests app, fastlane sets the IS_RUNNING_LOAD_SHEDDER_INTEGRATION_TESTS string to true in Constants.kt.
  • There's a new function BasePurchasesIntegrationTest.isRunningLoadShedderIntegrationTests, that tests can use to determine if they're running in the load shedder integration test app.

Testing

I manually forced the integration tests to run on this PR, and both the regular and load shedder integration tests passed in Firebase

@fire-at-will fire-at-will self-assigned this Jul 16, 2025
@fire-at-will fire-at-will marked this pull request as ready for review July 16, 2025 16:21
@fire-at-will fire-at-will requested a review from tonidero July 16, 2025 16:23
@fire-at-will fire-at-will changed the title [WIP] Dont run VC tests on load shedder Dont run VC tests on load shedder Jul 16, 2025
@fire-at-will fire-at-will changed the title Dont run VC tests on load shedder Dont run VC tests on load shedder integration tests Jul 16, 2025
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Just a comment but looks good!

@fire-at-will fire-at-will enabled auto-merge July 16, 2025 16:48
@fire-at-will fire-at-will added this pull request to the merge queue Jul 16, 2025
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.23%. Comparing base (4fc17af) to head (5261c25).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2538   +/-   ##
=======================================
  Coverage   78.23%   78.23%           
=======================================
  Files         291      291           
  Lines       10772    10772           
  Branches     1504     1504           
=======================================
  Hits         8428     8428           
  Misses       1692     1692           
  Partials      652      652           

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

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

Merged via the queue into main with commit ed58fcf Jul 16, 2025
14 checks passed
@fire-at-will fire-at-will deleted the dont-run-vc-tests-on-load-shedder branch July 16, 2025 18:05
github-merge-queue bot pushed a commit that referenced this pull request Jul 17, 2025
**This is an automatic release.**

## RevenueCat SDK
### Virtual Currency
#### ✨ New Features
* Virtual Currency Support (#2519) via Will Taylor (@fire-at-will)

## RevenueCatUI SDK
### Paywallv2
#### ✨ New Features
* PaywallActivityLauncher: Add `edgeToEdge` parameter to display paywall
in full screen (#2530) via Toni Rico (@tonidero)
#### 🐞 Bugfixes
* Remove logic to avoid repurchasing already subscribed products (#2492)
via Toni Rico (@tonidero)

### 🔄 Other Changes
* Dont run VC tests on load shedder integration tests (#2538) via Will
Taylor (@fire-at-will)
* Introduces `CompatComposeView` to handle scenarios where the view tree
is not set up (#2527) via JayShortway (@JayShortway)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero pushed a commit that referenced this pull request Aug 25, 2025
### Description
We were running virtual currency integration tests both with and without
the load shedder. However, the load shedder doesn't currently support
virtual currencies, so these tests were failing when run for the load
shedder integration test app. This PR updates the integration tests so
that the virtual currency integration tests don't run for the load
shedder integration tests app.

### Implementation Details
We are able to accomplish this by:
- When we're running integration tests through the integration tests
app, fastlane sets the `IS_RUNNING_LOAD_SHEDDER_INTEGRATION_TESTS`
string to `true` in `Constants.kt`.
- There's a new function
`BasePurchasesIntegrationTest.isRunningLoadShedderIntegrationTests`,
that tests can use to determine if they're running in the load shedder
integration test app.

### Testing
I manually forced the integration tests to run on this PR, and both the
regular and load shedder integration tests passed in Firebase
@tonidero tonidero mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants