[Proposal] Improve tests quality #3425
Labels
enhancement
New feature or request
Stale
Issues and pull requests which have been flagged for closing due to inactivity
I want to improve current tests to improve both reliability and coverage.
The goal is to empower developers to make necessary changes and have high confidence that use cases aren't being broken.
To accomplish this, I'm proposing making investments in the following areas:
As of 2022-07-01, There are 16 libraries. Overall code coverage is 86.21%. 11 libraries have less than 90% coverage. 2 are less than 80%.
See also Improve Code Coverage #3353
These libraries are deemed important because they are depended on by several other libraries or is the core to the overall OpenTelemetry project.
Goal is to get these closer to 100% coverage, regardless of the triviality of those tests.
TODO: Need to confirm this list.
Goal is to get these tests to 90%, prioritizing meaningful tests.
Not certain if these are currently reported as part of overall code coverage.
These should be used where appropriate to avoid excessive mocking.
Flaky tests impact both devs and reviewers when the CI can't be trusted.
To accomplish this, Flaky tests need to be reported/collected in an issue(s) for further review.
See also Test stability - PrometheusExporterHttpServerTests.PrometheusExporterHttpServerIntegration #3292, Test stability - Instrumentation.AspNetCore.Tests.IncomingRequestsCollectionsIsAccordingToTheSpecTests opentelemetry-dotnet-contrib#1752
The text was updated successfully, but these errors were encountered: