Skip to content

Test Coverage Tracking #839

@stephan-rayner

Description

@stephan-rayner

Current Test Coverage

Measured on against main branch using go test -coverprofile=coverage.out ./....

Overall: 50.0%

Package Coverage
cmd/exporter/web 100%
pkg/aws/s3 96.8%
pkg/aws/natgateway 89.7%
pkg/aws/ec2 86.0%
pkg/google/cloudsql 85.9%
pkg/google/gke 85.8%
pkg/aws/rds 83.0%
pkg/google/gcs 82.9%
pkg/google/networking 82.1%
pkg/aws/pricingstore 82.0%
pkg/gatherer 75.0%
pkg/aws/client 73.8%
pkg/google/client/cache 72.7%
pkg/azure 66.0%
pkg/aws/vpc 54.5%
pkg/azure/aks 45.9%
cmd/exporter/config 42.9%
pkg/google/vpc 32.4%
pkg/google/client 28.9%
pkg/aws/elb 26.9%
pkg/utils 17.1%
cmd/exporter 4.7%
cmd/dashboards 6.5%

Packages with no tests

  • pkg/aws/services (and sub-packages)
  • pkg/provider
  • pkg/logger
  • pkg/google/metrics
  • pkg/azure/client
  • scripts/aws-spot-pricing
  • scripts/gcp-fetch-skus

Notable gaps

  • pkg/aws/elb — 26.9%
  • pkg/utils — 17.1%
  • pkg/google/vpc — 32.4%
  • pkg/google/client — 28.9%
  • cmd/exporter / cmd/dashboards — very low entry-point coverage

This issue tracks the baseline so improvements can be measured over time.

coverage.html

Metadata

Metadata

No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions