鲍勃の部屋
  • Blog
  • Work
  • About
  • Contact

Jasmine 使用初探

6/26/2014

0 Comments

 
什么是JASMINE:

Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests. This guide is running against Jasmine version 2.0.0.

第一步:安装

bob采用的是bower安装, so

1.安装nodeJS
2.npm install bower -g
3.bower install jasmine


第二步:看官方demo
在$YOUR_PATH/bower_components\jasmine\dist\ 下 解压jasmine-standalone-2.0.0.zip
然后运行里面的 SpecRunner.html

可以看到jasmine的运行界面如下

Read More
0 Comments

    Author

    鲍勃 (上海)
    互联网码农

    小A

    Archives

    July 2014
    June 2014
    May 2014

    Categories

    All
    AngularJS
    App
    Bootstrap
    Cocos2dx-c++
    Css
    CSS3
    Design Pattern
    Express
    Funny
    Game
    Html5
    Jasmine
    Javascript
    Lua
    Music
    Node.js
    Pattern
    Phonegap
    Php
    Python
    Tdd
    Tips

    RSS Feed

Powered by Create your own unique website with customizable templates.