Yeoman generator for Karma
Want to see pretty graphs? Log in now!
npm install generator-karma
|743||downloads in the last day|
|4 629||downloads in the last week|
|22 257||downloads in the last month|
|Last Published By|
|Version||0.7.0 last updated 2 months ago|
|Keywords||yeoman-generator, scaffold, test, runner, karma|
|Starred by||mhaidarh, passy|
Maintainer: Brian Ford
See the Karma documentation for more info.
Karma runs the tests in the browser, but reports them in the CLI. This greatly improves your workflow by giving you constant, accurate feedback on the status of your tests.
PhantomJS is a great option too, but it has the one drawback that it won't expose browser inconsistencies.
Install it globally
npm install -g generator-karma.
yo karma will generate two files for your project:
karma-e2e.conf.js. It will then install the npm dependencies.
Note that you'll need to update your
Gruntfile.js. If you're using Karma through the AngularJS generator, all of the configuration is done for you.
Skips the automatic execution of
npmafter scaffolding has finished.
mocha. Can be switched for another supported testing framework like
Enable support for tests written in CoffeeScript.
Enable Travis CI config generation.
Karma can be configured by editing
karma.conf.js. See the documentation page on the config file for an exhaustive list of options.
See the contributing docs