Karma Test Runner

May 14, 2015

Karma is a test runner based on Node.js.

The Karma team recommends installing Karma locally at the project level. So, we are supposed to add it in the package.json file of each of our projects.

Karma will be located under the node_modules folder within our project. Any other Node.js dependencies defined in the package.json file will also be located under the node_modules folder.


Karma requires a configuration file named karma.conf.js

module.exports = function (config){
            basePath: '../',
            files: [],
            exclude: [],
            autoWatch: true,
            frameworks: [],
            browsers: [],
            plugins: []