Skip to content

[BUG] Code coverage report does not include internalClusterTests #19140

@Divyaasm

Description

@Divyaasm

Describe the bug

The coverage report generated for every pull request includes only Unit tests and javaRestTest, but we are not including internalClusterTests

Related component

Build

To Reproduce

Check the list of coverage reports that are included in the final codecov report, which are redirected from a successful jenkins workflow run.
https://github.com/opensearch-project/OpenSearch/blob/main/gradle/code-coverage.gradle#L68-L87

Expected behavior

The report should also include internalClusterTest

Additional Details

Further enhancements:

We an consider generating code coverage report for independently for unit tests and Integration tests.
With this approach we could exclude cases where lines are covered by unit tests but not integration tests which can't be found with the current aggregated codecov report.

Metadata

Metadata

Assignees

Labels

BuildBuild Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions