seajs使用karma做单元测试
执行npm install
执行测试并且启动文件监听,在修改seajs模块或者测试脚本时会自动重新执行测试
karma start
仅执行测试
karma start karma.conf.js --singleRun
为什么选择karma?
http://segmentfault.com/a/1190000000317146
http://www.alloyteam.com/2015/06/qian-duan-ce-shi-hui-gu-ji-wo-men-wei-shi-me-xuan-ze-karma/
karma配置入门