2017年1月22日

jasmine 使用

摘要: 1. 下载浏览器运行测试包 https://github.com/jasmine/jasmine/releases https://github.com/jasmine/jasmine/releases 2. 解压,运行包含的测试 SpecRunner.html SpecRunner.html 3. 阅读全文

posted @ 2017-01-22 16:50 荣锋亮 阅读(516) 评论(0) 推荐(0) 编辑

编写浏览器和Node.js通用的JavaScript模块

摘要: 长期以来JavaScript语言本身不提供模块化的支持, ES6中终于给出了 from, import等关键字来进行模块化的代码组织。 但CommonJS、AMD等规范已经被广为使用,如果希望你的JavaScript同时支持浏览器和Node.js, 现在只有这几种方式: 通过 browserify等 阅读全文

posted @ 2017-01-22 16:49 荣锋亮 阅读(536) 评论(0) 推荐(0) 编辑

Cucumber 使用例子

摘要: 1. junit 配置 @RunWith(Cucumber.class) @CucumberOptions(format ={"pretty","html:target/cucumber"}, features={"src/main/java/demoapp"},tags={"@third"}) public class test { } # language: zh-CN 功... 阅读全文

posted @ 2017-01-22 09:29 荣锋亮 阅读(1199) 评论(0) 推荐(0) 编辑

导航