Karma start 和 grunt 的区别 karma:unit
Difference between Karma start and grunt karma:unit
谁能给我解释一下 karma start
和 grunt karma:unit
有什么区别?
有
karma start my.conf.js
您将使用作为参数给出的配置文件直接在 CLI 上启动测试
@见: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
与
grunt karma:unit
一个人使用任务“karma”,目标“unit”定义到您的 GruntFile 中。
换句话说,当一个人使用 grunt karma:unit grunt 在后台 karma start
谁能给我解释一下 karma start
和 grunt karma:unit
有什么区别?
有
karma start my.conf.js
您将使用作为参数给出的配置文件直接在 CLI 上启动测试
@见: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
与
grunt karma:unit
一个人使用任务“karma”,目标“unit”定义到您的 GruntFile 中。
换句话说,当一个人使用 grunt karma:unit grunt 在后台 karma start