Skip to content

Improve test coverage #29

@ibrahimcesar

Description

@ibrahimcesar

Description

Help improve test coverage across the codebase.

Current Status

  • 49 unit tests
  • 11 property tests
  • 10 integration tests
  • 70 tests total

Areas Needing Coverage

Unit Tests

  • Edge cases in event sanitization
  • Error handling paths
  • Configuration validation

Integration Tests

  • Sync failure scenarios
  • Offline mode transitions
  • Concurrent access patterns

Property Tests

  • Fuzz testing for parsers
  • Randomized event generation
  • Storage corruption recovery

How to Contribute

  1. Run `cargo test` to see current tests
  2. Run `cargo tarpaulin` for coverage report
  3. Identify uncovered code paths
  4. Write tests and submit PR

Good for learning the codebase!

Writing tests is a great way to understand how telemetry-kit works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions