I'm trying to use Nodeunit to test my Backbone models and later I'd like to test the other components as well. The main reason I'm using Nodeunit is because my server tests are using it already and I'd like to stick with one testing framework.
Is this a good idea? I've made one feable attempt of setting up a unit test, but it fails when I try to require the underscore and backbone libraries:
Error: Cannot find module 'underscore'
Is it possible at all to use nodeunit for this and if not what would the recommend unit-testing framework be for testing a Backbone app?