-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add test case for OptionalDependenciesPlugin (com.netflix.nebula:gradle-extra-configurations-plugin plugin migration) #7995
Conversation
…le-extra-configurations-plugin plugin migration) Signed-off-by: Andriy Redko <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7995 +/- ##
============================================
- Coverage 71.44% 70.92% -0.52%
+ Complexity 56913 56562 -351
============================================
Files 4715 4715
Lines 267246 267246
Branches 39186 39186
============================================
- Hits 190930 189549 -1381
- Misses 60492 61678 +1186
- Partials 15824 16019 +195 |
Gradle Check (Jenkins) Run Completed with:
|
Thanks @reta! |
…le-extra-configurations-plugin plugin migration) (#7995) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit 5ebfbcd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…le-extra-configurations-plugin plugin migration) (#7995) (#7996) (cherry picked from commit 5ebfbcd) Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Hi @reta , Just curious, Any particular reason why we added the test cases for Also for my understanding does the codecoverage tool recognize what we are testing? (from this comment looks like it showed codecov as decreased) |
Thanks @gaiksaya !
Yes, so the plugin is written in Groovy (OptionalDependenciesPlugin.groovy) so it is under
I think in general there is no constraints on test framework to use, as far as it brings tangible benefits. Our tests for this module are currently written in Java, as all other tests for OpenSearch core.
That is a good question, it believe it does not recognize what we are testing in this particular case. |
Thanks!
It helps. Was just curious why we didn't add groovy tests under |
What are the benefits? And what is the cost to maintain the new framework? Who in the community is familiar with it? Groovy is on severe decline, the only reason I've added the Groovy based plugin is to preserve the original license and source code. |
Looks like the above framework is already being used in OpenSearch https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/AbstractGradleFuncTest.groovy |
Indeed, thanks! Wanna give it a try by refactoring the |
Here is the gradle functional unit tests example from Also for CodeCov coverage the buildSrc folder is included, assume its coming from code-coverage.gradle, @reta am I right here? |
Will add to my queue for sure. Thanks! |
The |
…le-extra-configurations-plugin plugin migration) (opensearch-project#7995) (opensearch-project#7996) (cherry picked from commit 5ebfbcd) Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…le-extra-configurations-plugin plugin migration) (opensearch-project#7995) Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Rishab Nahata <[email protected]>
…le-extra-configurations-plugin plugin migration) (opensearch-project#7995) Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Add test case for OptionalDependenciesPlugin (com.netflix.nebula:gradle-extra-configurations-plugin plugin migration)
Related Issues
N/A
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.