angularjs - Run karma tests in linux terminal -


i'm building automation proccess angularjs project. part of flow have ran karma tests via grunt test on linux (centos) machine without gui interface. have no idea how karma works. can run way?

the karma-runner grunt has example of how configure karma run phantom in ci mode(run tests once , exit). have use configuration in gruntfile:

karma: {   unit: {     configfile: 'karma.conf.js',     runnerport: 9999,     singlerun: true,     browsers: ['phantomjs'],     loglevel: 'error'   } } 

the browsers array tells karma want use phantomjs(no gui necessary).


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -