Skip to content

Expand test coverage#13

Merged
enaboapps merged 1 commit intomainfrom
feature/test-coverage-6
Feb 26, 2026
Merged

Expand test coverage#13
enaboapps merged 1 commit intomainfrom
feature/test-coverage-6

Conversation

@enaboapps
Copy link
Copy Markdown
Owner

Summary

  • Expand from 6 to 38 tests covering all SDK features
  • Add mockito dev dependency for HTTP mock testing
  • Add base_url config option for test server targeting
  • Test categories: validation (all fields), batch flush, manual flush, disconnect, retry, on_error callback, ingest_raw, serialization, config defaults, log level ordering, convenience methods
  • Update basic example to use ..Default::default()

Closes #6

Test plan

  • All 38 tests pass (cargo test)

Add comprehensive tests for validation, batch flushing, retry logic,
disconnect, set_user_id/set_session_id, on_error callback, ingest_raw,
serialization, and convenience methods. Add mockito for HTTP mocking
and configurable base_url for testability.

Closes #6
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/test-coverage-6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@enaboapps enaboapps merged commit 2efa26a into main Feb 26, 2026
1 of 2 checks passed
@enaboapps enaboapps deleted the feature/test-coverage-6 branch February 26, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants