You can run the tests individually by hand, but you should be able to run them all at once. For that, you simply need to call from the shell command line:
$ ./node_modules/.bin/mocha test/users.js test/session.js test/todos.js
We now need to change package.json
so that you can inform node package manager (npm) how to run the tests:
{
"description": "To-do App",
"version": "0.0.0",
"private": true,
"dependencies": {
"union": "0.3.0",
"flatiron": "0.2.8",
"plates": "0.4.x",
"node-static": "0.6.0",
"nano": "3.3.0",
"flatware-cookie-parser": "0.1.x",
"flatware-session": "0.1.x"
},
"devDependencies": {
"mocha": "1.4.x",
"zombie": "1.4.x"
},
"scripts": {
"test": "mocha test/users.js test/session.js test/todos.js",
"start": "node app.js"
},
"name": "todo",
"author": "Pedro",
"homepage": ""
}
You can now run your tests using:
$ npm test ............. ✔ 13 tests complete (3758ms)