Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 740 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 740 Bytes

Integration Testing a SocketIO Server

This a light, basic, node.js based, socket.io server built to demonstrate a method for successfully testing the servers socket.io functionality. It allows you to emit events, receive responses and test the responses.

Steps to get, run and see the solution.

  1. Open 2 shells. (shell 1 and shell 2)
  2. Clone this REPO.
  3. Change directory into REPO with both shells.
  4. In shell 1, run "npm install" to get dependencies.
  5. In shell 1, run "npm start" to start the server.
  6. In shell 2, run "npm test" to run the automated tests.
  7. Study the output in the shells.
  8. Open REPO in your favorite code editor.
  9. Study the code, it's not a lot.
  10. Hack at it and build your own socket.io server! :)