Add defaultsRelease variant tests run configuration#1074
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1074 +/- ##
=======================================
Coverage 85.76% 85.76%
=======================================
Files 176 176
Lines 6265 6265
Branches 864 864
=======================================
Hits 5373 5373
Misses 557 557
Partials 335 335 ☔ View full report in Codecov by Sentry. |
|
Can you clarify? Does "All Tests" run tests multiple times, one on each variant? |
I updated the description but that's correct. The |
|
Oh wow yeah that’s a lot. Did you make this for local runs or for CI? I wonder if locally we should default to running debug instead. |
The change in this PR only adds a configuration for when you run through Android Studio. In CI, we are currently running tests in the But yeah, maybe making one each for debug and release makes sense, I will add one run configuration for debug as well 👍 |
|
Added both a debug and release run configuration for Android studio @NachoSoto |
| </option> | ||
| <option name="taskNames"> | ||
| <list> | ||
| <option value="testDefaultsDebugUnitTest" /> |
There was a problem hiding this comment.
This is the gradle task that gets executed, this is the same as executing ./gradlew testDefaultsDebugUnitTest in the terminal
**This is an automatic release.** ### Bugfixes * Default customer info schema version to latest known by SDK (#1080) via Toni Rico (@tonidero) * Handle other diagnostics-related exceptions (#1076) via Toni Rico (@tonidero) * Return error in queryPurchases if error connecting to billing client (#1072) via Toni Rico (@tonidero) ### Other Changes * Fix offline entitlements integration tests (#1085) via Toni Rico (@tonidero) * Add defaultsRelease variant tests run configuration (#1074) via Toni Rico (@tonidero) * Compose sample app: move to gradle catalog (#1081) via Toni Rico (@tonidero) * Compose sample app: automate builds (#1082) via Toni Rico (@tonidero) * Compose sample app (#1056) via Toni Rico (@tonidero) * Migrate to Gradle version catalog (#1059) via Cesar de la Vega (@vegaro) * Trusted entitlements: Add logs with verification mode (#1067) via Toni Rico (@tonidero) * Sync pending purchases before getting customer info (#1073) via Toni Rico (@tonidero) * Refactor syncing pending transactions logic out of `Purchases` (#1058) via Toni Rico (@tonidero) * Refactor CustomerInfo listener and cache logic into CustomerInfoUpdater (#1052) via Toni Rico (@tonidero) * Trusted entitlements: Add integration tests (#1071) via Toni Rico (@tonidero) * Trusted entitlements: Add internal mechanism to force signing errors for tests (#1070) via Toni Rico (@tonidero) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Description
This adds 2 new run configuration in Android studio to run the tests only in the

defaultsDebugordefaultsReleasevariantThe
All testsrun configuration run the same tests multiple times:Many times, we don't really need to run the tests in all variants, this provides a way so tests are a bit faster to run locally when it's not needed to run in all variants.