-
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
Report test coverage #850
Comments
Currently code coverage for specific tests can be obtained through Intellij IDEA when running the test manually. JaCoCo Gradle plugin will make all Gradle tasks of type "org.gradle.api.tasks.testing.Test" to provide coverage information. In OpenSearch, there are several Gradle tasks to run tests: All the above tasks, except "forbiddenApisTest", are extended by "org.gradle.api.tasks.testing.Test" class, so they can be enbanced by JaCoCo plugin to provide coverage information. Note:
|
There are several sub-projects in the whole repository that don't have tests, which can be found by searching for |
This is nice. Couple of questions:
|
I realized that
It's defined by https://github.com/policeman-tools/forbidden-apis, for its Gradle plugin, it will register a separate task for each defined sourceSet. "For default Java projects, two tasks are created: forbiddenApisMain and forbiddenApisTest."
Sorry my above statement was not correct, the sub-projects that disabled
|
Created 3 issues to complete the code coverage reporting: |
Generated codecov report on local machine and uploaded on server against forked repository. The results shows ~70% code coverage. Waiting on infra side changes for enabling code cov on OpenSearch repo ETA June 24. |
Hi @dreamer-89 this is complete for now: |
* Add Support for Hybrid Query Type Signed-off-by: Varun Jain <[email protected]> * Add samples, guide and integ tests Signed-off-by: Varun Jain <[email protected]> * Removing wildcard imports Signed-off-by: Varun Jain <[email protected]> * Adding import Signed-off-by: Varun Jain <[email protected]> * Adding import Signed-off-by: Varun Jain <[email protected]> --------- Signed-off-by: Varun Jain <[email protected]>
Report test coverage for all the tests done in OpenSearch.
One of the options include using https://github.com/codecov
The text was updated successfully, but these errors were encountered: