opensearch-project/neural-search

[Tech debt] Improve test coverage - phase 1, meet minimal required level

Open

#429 opened on Oct 10, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (124 forks)auto 404
Maintenancegood first issue

Repository metrics

Stars
 (116 stars)
PR merge metrics
 (PR metrics pending)

Description

Improve test coverage for repo, all packages should be above 80%.

Currently report is showing following packages that are below 80%:

Steps to repro:

  1. Check above links for code coverage report. Click on every class and check which lines or methods are not covered, write tests for those lines.
  2. If you write unit test and want to run it, do
./gradlew test

that will execute changes. If you want to check how coverage changes after adding your test, you need to create a new PR with your changes, mark it as "Draft" and let CI run. Part of the CI execution is generation of new coverage report with your changes.

Some tips:

Contributor guide