SEAPUNK / socketeer

yet another websocket framework
MIT License
3 stars 0 forks source link

Tests #6

Open SEAPUNK opened 8 years ago

SEAPUNK commented 8 years ago

I need to write tests for socketeer, to test the anything and everything.

SEAPUNK commented 8 years ago

Egh, writing tests is a pain. I'll redo the entire everything sometime later.

SEAPUNK commented 8 years ago

Use https://github.com/sindresorhus/get-port for port allocations.

If this requires a socketeer server, run a while loop, getting port and then creating server until you can listen to one.


Maybe if we're testing a server, we should have it all be in one test file? Not too sure. I don't know if Ava is the right choice for Socketeer testing.

SEAPUNK commented 8 years ago

Temporarily falling back to mocha for tests.

SEAPUNK commented 8 years ago

I'll stick to Mocha. I don't think Ava is a good fit for this project.

SEAPUNK commented 8 years ago

Re: Using get-port, don't. Use port 0 instead.