Karma start和grunt karma之间的区别:单位

问题描述 投票:3回答:1

任何人都可以向我解释karma startgrunt karma:unit之间有什么区别?

unit-testing gruntjs karma-runner
1个回答
2
投票

karma start my.conf.js

您将使用作为参数给出的配置文件直接在CLI上启动测试

@see:http://karma-runner.github.io/0.13/intro/configuration.html

启动Karma时,配置文件路径可以作为第一个参数传递。默认情况下,Karma会在> current目录中查找karma.conf.js或karma.conf.coffee。

使用您的配置启动Karma:

$ karma启动my.conf.js

grunt karma:unit

一个人使用任务“业力”与目标“单位”定义到你的GruntFile。

换句话说,当一个人使用咕噜的业力时:单位咕噜会在背景中开始业力

© www.soinside.com 2019 - 2024. All rights reserved.