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
Post a Comment