If you are having trouble with a specific test, you don't need to run the whole test suite or even the whole test file. Mocha accepts a -g <expression>
command-line option, and will only run the tests that match that expression.
For instance, you can run only the tests that have the word remove
in the description, shown as follows:
$ DEBUG=true node_modules/.bin/mocha -R spec -g 'remove' test/todos Todos Todo removal form When one todo item exists ◦ should allow you to remove: Zombie: GET http://localhost:3000/session/new => 200 ... ✓ should allow you to remove (959ms) When more than one todo item exists ◦ should allow you to remove one todo item: Zombie: GET http://localhost:3000/session/new => 200 ... ✓ should allow you to remove one todo item (683ms) ✔ 2 tests complete (1780ms)
This way you will be running only these specific tests.