什么是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的运行界面如下
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的运行界面如下