Skip to content

Add Unit Tests to network and provider functions #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

saipreetham16
Copy link
Contributor

@saipreetham16 saipreetham16 commented May 8, 2025

Increasing test coverage for the package.
As part of this change we are adding Unit Tests to network and provider functions.

@saipreetham16 saipreetham16 requested a review from a team as a code owner May 8, 2025 04:56
@ExperimentalCoroutinesApi
@RunWith(RobolectricTestRunner::class)
@Config(manifest = Config.NONE)
class WebSocketManagerTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we're covering many of the core cases in this test file. We should really be testing connection/disconnection/reconnection logic here as well as parseTranscriptItemFromJson.

I would reference a file like ChatServiceImplTest.kt for how we want to implement unit tests.

@mliao95 mliao95 self-requested a review May 13, 2025 17:42
@saipreetham16 saipreetham16 merged commit 8ef6b2b into main May 13, 2025
4 checks passed
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.

3 participants