I have used https://github.com/juacompe/tdd_angular as a starting point to demostrate TDD. Recently I learned about Karma (Thanks to Amp!) and decided to create a new bare template for AngularJS project using Karma as a test runner.
###OSX
- Install Homebrew at http://mxcl.github.com/homebrew/
- Install node via homebrew
brew install node
- Go to the directory where you cloned the repository
- npm install
- add
/usr/local/share/npm/bin
to$PATH
variable in~/.bash_profile
. If the line does not exist, put in this:export PATH=$PATH:/usr/local/share/npm/bin
###Ubuntu
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
###Windows
- Download Install nodejs from http://nodejs.org/download/
reference: https://github.com/huskycode/foresee#nodejs-installation-for-dev
grunt test