Reputation: 247
Can anybody explain to me what is the difference between the karma start
and grunt karma:unit
?
Upvotes: 3
Views: 507
Reputation: 1618
With
karma start my.conf.js
You will launch your tests directly on your CLI with a config file given as parameters
@see: http://karma-runner.github.io/0.13/intro/configuration.html
When starting Karma, the configuration file path can be passed as the first argument. By default, Karma would look for karma.conf.js or karma.conf.coffee in the > current directory.
Start Karma using your configuration:
$ karma start my.conf.js
With
grunt karma:unit
One uses the task "karma" with the target "unit" defined into your GruntFile.
In other words when one uses grunt karma:unit grunt does a karma start in background
Upvotes: 2