Repository navigation
Refactor Gradle integration tests - #3489
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3489 +/- ##
============================================
- Coverage 80.52% 79.74% -0.79%
+ Complexity 2888 2864 -24
============================================
Files 459 459
Lines 8643 8643
Branches 1674 1674
============================================
- Hits 6960 6892 -68
- Misses 763 841 +78
+ Partials 920 910 -10
Continue to review full report at Codecov.
|
BraisGabin
approved these changes
Feb 21, 2021
BraisGabin
left a comment
Member
There was a problem hiding this comment.
👏🏻👏🏻 Nice refactor. I had no idea that detektMain was running the android tasks too. Nor the ignored configuration. I have work to do Monday morning at work 😅.
picklebento
force-pushed
the
agpintegrationtest
branch
from
February 21, 2021 16:57
643b61d to
09015ab
Compare
BraisGabin
approved these changes
Feb 23, 2021
Member
Author
Good call. Now we have one remaining non-testkit gradle unit test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR serves two purposes:
intTestsource set and we cannot launch those tests in IDE. IDEA-218815 is an issue that's applicable to a lot of people in the recent versions. So I am planning to remove theintTestand merge it back totest.Note
While this mostly maintains the test coverage, I did reduce the following test cases:
com.android.testis removed. Since there are many other plugin's likecom.android.dynamic-feature,com.android.lintandcom.android.reporting, it is not necessary to test all different android plugins. As long as the base plugincom.android.build.gradle.api.AndroidBasePluginis applied, we do not need to worry too much about other subplugins.sallyfromname. This does not provide too much value in my opinion while contributes significantly the lines of code in tests.