rsms / gotalk

Async peer communication protocol & library
MIT License
1.2k stars 76 forks source link

Protocol test suite #5

Open alecthomas opened 9 years ago

alecthomas commented 9 years ago

I am writing a Swift client for GoTalk and it would be excellent if there were a protocol test suite available. I have the base protocol written, but verifying correctness is a matter of trial and error.

I may tackle this myself, but thought I'd file an issue to gather thoughts first.

I imagined a data-driven suite would probably be most useful for different language implementations. Perhaps something where an implementation can load a JSON file (or whatever) and playback simulated communications with a server or client.

Thoughts?

rsms commented 9 years ago

Great idea!

rsms commented 4 years ago

2c048e74cc87385dbcc2c82abd6f12f38e4f5cba adds a test suite that tests some aspects of communication in practice.

To try it:

git pull && make test