opensearch-project / opensearch-net

OpenSearch .NET Client
Apache License 2.0
102 stars 49 forks source link

[FEATURE] Standardize, setup, report, and increase test coverage #99

Open Xtansia opened 1 year ago

Xtansia commented 1 year ago

Setup code coverage, once reporting from CI/CD analyze the test gap and fill it.

See the meta issue https://github.com/opensearch-project/opensearch-clients/issues/30 for details.

Yury-Fridlyand commented 1 year ago

I did an investigation in this area recently. My findings so far:

Xtansia commented 1 year ago

From my past experience with SonarQube/SonarCloud, it does not collect code coverage itself, you'd use something like https://github.com/coverlet-coverage/coverlet or https://www.jetbrains.com/dotcover/ to do the actual collection, and then submit the coverage stats to SonarQube/SonarCloud for reporting and use in quality gates.

It appears the clients and other OpenSearch projects already reporting coverage statistics are using codecov.io as the reporting service: https://github.com/search?l=YAML&p=1&q=org%3Aopensearch-project+codecov&type=Code.