All Projects → agconti → Socket.io.tests

agconti / Socket.io.tests

Licence: mit
A basic example of testing node apps that use socket.io using mocha and chai

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].