码迷,mamicode.com
首页 > 移动开发 > 详细

Karma install steps for unit test of Angular JS app

时间:2014-09-02 00:12:13      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   for   2014   art   log   

  • npm install -g karma
  • npm install –g karma-cli
  • Install the plugins (optional)

          # Install plugins that your project needs:  npm install karma-jasmine karma-chrome-launcher --save-dev

  • Run following command to do unit test:

          C:\Users\Bruce\angular-phonecat-master\test>karma start karma.config.js

 

Below is the test result of PhoneCat project

bubuko.com,布布扣

Karma install steps for unit test of Angular JS app

标签:style   blog   http   io   ar   for   2014   art   log   

原文地址:http://www.cnblogs.com/pengpenghappy/p/3950511.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!