Skip to content

agconti/socket.io.tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published