I\'m trying to add some unit tests to one of my projects.
So far I\'ve installed and configured karma, and have installed jasmine. I\'ve one test file in my te
You need to configure your "my.conf.js" file, because it contains all the info to use to test your code.
All what you need to write is this:
The configuration file can be generated using karma init:
$ karma init my.conf.js
Which testing framework do you want to use? Press tab to list possible options. Enter to move to the next question.
jasmine
Do you want to use Require.js? This will add Require.js plugin. Press tab to list possible options. Enter to move to the next question.
no
Do you want to capture a browser automatically? Press tab to list possible options. Enter empty string to move to the next question.
Chrome
What is the location of your source and test files? You can use glob patterns, eg. "js/*.js" or "test/**/*Spec.js". Press Enter to move to the next question.
*.js test/**/*.js
Should any of the files included by the previous patterns be excluded? You can use glob patterns, eg. "**/*.swp".
Press Enter to move to the next question.
Do you want Karma to watch all the files and run the tests on change? Press tab to list possible options.
yes
Config file generated at "/Users/vojta/Code/karma/my.conf.js".