-
Notifications
You must be signed in to change notification settings - Fork 109
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 and verify coverage only on debug variant #2556
Test and verify coverage only on debug variant #2556
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2556 +/- ##
===========================================
- Coverage 73.18% 73.16% -0.02%
===========================================
Files 1407 1407
Lines 34062 34062
Branches 6609 6609
===========================================
- Hits 24927 24921 -6
- Misses 5685 5689 +4
- Partials 3450 3452 +2 ☔ View full report in Codecov by Sentry. |
I don't see a good way to keep the coverage, since the missing tests can only be run on release mode given our |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some small remarks.
- name: ⚙️ Run unit tests, debug and release | ||
run: ./gradlew test $CI_GRADLE_ARG_PROPERTIES | ||
- name: ⚙️ Run unit tests for debug variant | ||
run: ./gradlew testDebugUnitTest $CI_GRADLE_ARG_PROPERTIES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if ./gradlew testGplayDebugUnitTest
would be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably. I kept it like that in case we add some fdroid
only tests in the future. I'll change it and see if anything changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, that will only run :app:testGplayDebugUnitTest
according to --dry-run
, since the flavor only exists in that module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK 👍
@@ -189,7 +188,7 @@ androidComponents { | |||
val abiCode = abiVersionCodes[name] ?: 0 | |||
// Assigns the new version code to output.versionCode, which changes the version code | |||
// for only the output APK, not for the variant itself. | |||
output.versionCode.set((output.versionCode.get() ?: 0) * 10 + abiCode) | |||
output.versionCode.set((output.versionCode.orNull ?: 0) * 10 + abiCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -215,26 +214,6 @@ knit { | |||
} | |||
} | |||
|
|||
val ciBuildProperty = "ci-build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter ci-build
is also used in nightlyReports.yml
, I think it can be removed from this file too.
Quality Gate passedIssues Measures |
Type of change
Content
Only test and verify coverage on debug variant.
Motivation and context
Checklist