harsh
harsh

Reputation: 247

Difference between Karma start and grunt karma:unit

Can anybody explain to me what is the difference between the karma start and grunt karma:unit?

Upvotes: 3

Views: 507

Answers (1)

CyrilleGuimezanes
CyrilleGuimezanes

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

Related Questions