Add SDK test infrastructure#20
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR builds test infrastructure for the Termii SDK by introducing fake HTTP message handlers, request extensions, and an integration test environment configuration. Unit tests are refactored to use the new utilities, replacing inline mocking. Documentation is updated to track implementation progress and environment variable requirements. ChangesTest Infrastructure Implementation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
Adds reusable test infrastructure for upcoming endpoint PRs so request-building tests and opt-in integration tests stay consistent.
What changed
TestHttpMessageHandler.TestTermiiClientFactoryfor consistent fake-client setup.IntegrationTestEnvironmentfor credential-gated live tests.TERMII_TEST_PHONE_NUMBERin the README integration test section..DS_Storeto.gitignore.Validation
dotnet build Termii.SDK.sln --configuration Release --no-restoredotnet test Termii.SDK.sln --configuration Release --no-buildCloses #10
Summary by CodeRabbit
Documentation
TERMII_TEST_PHONE_NUMBERenvironment variable documentation for integration testsTests