Skip to content
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

Some way to test protocols leveraging trio.testing #2

Open
asmodehn opened this issue Jan 16, 2019 · 0 comments
Open

Some way to test protocols leveraging trio.testing #2

asmodehn opened this issue Jan 16, 2019 · 0 comments

Comments

@asmodehn
Copy link

Trio provides facilities for testing via trio.testing

It seems these would come in useful here, as a way to extensively test a user's custom protocols, in an efficient way, without doing any actual system call.

For example, one could want to test a protocol over a memory_stream_pair transport (my current use-case)

As for what the API could look like, I don't have a clear picture just yet. The intention is simply to provide a similar abstraction of a 'listener'/'server' "running", while a 'client' attempts to connect to it.
The client and the server will likely just be 2 coroutines communicating over a memory transport...

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

No branches or pull requests

1 participant