- 1
- 0
- 约1.3万字
- 约 52页
- 2017-08-26 发布于广东
- 举报
揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! Debugging Example 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! ? Karma preprocessor plugins can rewrite files before serving them. – This is how (for example) instrumentation for code coverage works. ? Plugins usually require extra Node.js libraries to be installed. Preprocessors 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! ? Based on istanbul JS code coverage library. ? http://gotwarlost.github.io/istanbul/ preprocessors = { **/lib/*.js: coverage }; reporters = [‘coverage’]; coverageReporter = { type: ‘html’, dir : ‘coverage/’ } Coverage Example ? ? ? ? Javascript Web Application Testing Unit Testing Running Tests End-to-End (Functional) Tests 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! Agenda 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! End-to-End (or Functional) Tests ? Give us confidence that the entire system works together. ? Traditionally, functional tests for web applications are often written with Selenium/WebDriver. – Selenium/WebDriver is Java-based, so our functional test code is most often in Java. ? But we want to do all of our testing with Javascript. What to do? 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! ? Browser automation API for writing functional tests. ? Goal is to use the browser “like a user would”. ? Bindings for various languages (.NET, Ruby, Python, …), but the primary focus is Java. ? Sometimes loved, sometimes hated, but always used (there aren’t many alternatives anymore). WebDriver * 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! Creating a Testing Culture Using Javascript Scott McMaster Google Kirkland, Washington USA scott.d.mcmaster (at) 揭示研发管理白金定律,分享那些激动人心的创新与变革,使得团队获得过多源动力与更大的推动力! ? Software Design Engineer @ Google. – Building high-traffic web frontends and services in Java, JavaScript, CSS. – AdWords, Google Code. ? Ph.D. in Computer Science, U. of Maryland. ? Formerly of A (2 years), Lockheed Martin (2 years), Microsoft (7 years), and some s
原创力文档

文档评论(0)