http://karma-runner.github.io/0.10/index.html
A test runner for js tests. Can ran tests described with a lots of frameworks (Jasmine, Mocha, QUnit, ...)
http://karma-runner.github.io/0.10/config/configuration-file.html
http://karma-runner.github.io/0.10/config/browsers.html
export CHROME_BIN=/usr/bin/google-chrome-stable
Use grunt-karma
npm module.
A sample grunt task is needed :
karma: {
unit: {
configFile: 'karma.conf.js'
}
}
karma.conf.js
should be generated with the karma command line tool.
Install launcher, karma-chrome-launcher
to use Chrome, or karma-phantomjs-launcher
for a silent execution.
A big number of tests can cause phantomjs to crash, it is worse with a coverage preprocessor.
There is nothing to do instead of using something else or split the tests suites into several pieces, but coverage tools needs the tests to be ran to work ...
https://github.com/karma-runner/karma-phantomjs-launcher/issues/55
https://stackoverflow.com/questions/24436460/phantomjs-dies-by-high-memory-consumption
phantomjs could be considered dead :
phantomjs repo issues
mailing list
headless chrome alternative