Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 831 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 831 Bytes

socket.io.tests

Because the Socket.io docs don't contain any documentation on how to write unit or integration tests for apps that use the Socket.io; it can be really hard to get started. This repo contains a basic example of testing node.js apps that use socket.io using the mocha and chai testing frameworks.

To get started, clone this repo with:

git clone [email protected]:agconti/socket.io.tests.git

Install the required dependencies:

npm install

Run the testing suite with:

npm test

You'll see something like this:

socketio_testing

Want more information? Use the handy debug test command:

npm run debugTest

debug_testing