-
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
Upload code coverage report through CI #1320
Comments
I set up a GitHub Actions workflow to test things out at my end and seems like I have an issue running the tests. These are the tasks that I am running at my end. (All these are running on a replica of the ./gradlew check -Dtests.coverage=true # the workflow run for the below task has been successful
# because of 'true' but the build failed
./gradlew codeCoverageReport --parallel || true
All these tasks failed with the following exception.
Runs for reference: I am able to perform The workflow installs JDK11 and runs the above command(s). I have some questions here.
|
@sampathbalivada Check out #1665, that should answer many questions. Beyond setup, |
Likely! |
Code coverage report upload was handled as part of public jenkins migration work. Since, the work is already completed, closing this issue. |
Is your feature request related to a problem? Please describe.
A part of issue: #850
There hasn't got a place to see the code coverage of this repository.
Describe the solution you'd like
To achieve the goal of reporting test coverage, I plan to upload the code coverage report to Codecov through CI.
We have set a plan for OpenSearch/Dashboards plugins to report the code coverage, and I'm going to expand it to the
"OpenSearch".
The report can be uploaded to Codecov daily or during the "gradle check" process of Pull Requests.
The command to generate the code coverage report: the guide in TESTING.md
Steps to upload the report to Codecov:
The codecov dashboard to see all the code coverage information for opensearch-project: https://app.codecov.io/gh/opensearch-project
Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: