Hi,
I'm interested in contributing to
socket.io, but I can't seem to run the tests for the client library. Here's what I'm doing:
1) I have a clean nodejs==0.6.12 install and a checkout of socket.io-client from github at version 0.9.1-1.
2) Following the wiki page I run "make test" - this shouts at me with "Error: Cannot find module 'express'". Ok, obviously I need to install dependencies, but it would
be nice to put this step on wiki. "npm install" installs a lot of stuff.
3) "Error: Cannot find module 'socket.io-client'" - ok, so I obviously don't know much about node packages, but "npm link" seems to fix this.
4) "Error: Cannot find module 'should'" - missing dependency. "npm install should"
5)
util.test.js parse uri: TypeError: Property 'should' of object http is not a function
at Test.fn (/home/lrekucki/socket.io-client/test/util.test.js:17:21)
at /home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:939:18
at Test.setup (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:841:55)
at Test.runSerial (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:937:10)
at Test.run (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:921:18)
at next (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:867:22)
at runSuite (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:875:6)
at check (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:814:12)
at runFile (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:819:6)
at next (/home/lrekucki/socket.io-client/node_modules/expresso/bin/expresso:792:17)
are supposed to be run in a browser. Fair enough, but why then wiki suggests running "make test" that runs them from node ?
And of course the "test/node/builder.common.js" fails with some errors (maybe it's because the node version) both before and after the patch.
Sorry for the rant. If I can help out somehow, let me know.