Skip to content

Writing tests #282

@aaugustin

Description

@aaugustin

The documentation should describe best practices for writing tests for websockets apps.

For testing a server, it's possible to run the server, instantiate a client, and use the client to interact with the server. This only allows writing end-to-end tests.

For testing a server or a client, it must be possible to mock the send() and recv() methods, although I'm not too sure how to mock coroutines.

If you've found a nice approach to this, I'm interested :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions