当前位置:文档之家› 编程技术讲解客户端脚本语言JavaScriptUnit

编程技术讲解客户端脚本语言JavaScriptUnit

编程技术讲解客户端脚本语言 JavaScriptUnit
Agenda
» JavaScript » Unit Testing » JavaScript Unit Testing Frameworks » Fun time for coding
编程技术讲解客户端脚本语言 JavaScriptUnit
JavaScript
编程技术讲解客户端脚 本语言JavaScriptUnit
2020/12/13
编程技术讲解客户端脚本语言 JavaScriptUnit
JavaScript Unit Testing Framework
Presenter: Hoat Le Van (aka hoatle)
» eXo Social Team Leader » Hanoi PHP Day:
Unit Testing Benefits
» To isolate each part of the program and show that the individual parts are correct » Facilitates change » Documentation » Design
The Name Bad books Amateurs Object Oriented?
编程技术讲解客户端脚本语言 JavaScriptUnit
Unit Testing
编程技术讲解客户端脚本语言 JavaScriptUnit
What is Unit Testing?
» Units of source code are tested » Written and run by developers to ensure that code meets its design and behaves
as intended and expected » Commonly automated » Extreme Programming uses the creation of unit tests for test-driven development
编程技术讲解客户端脚本语言 JavaScriptUnit
» Implements code to pass that test » Finally refactors
编程技术讲解客户端脚本语言 JavaScriptUnit
Test Driven Development (TDD)
(wikipedia)
编程技术讲解客户端脚本语言 JavaScriptUnit
20 08: attendee 2009: Advanced JavaScript Techniques 2010: JavaScript Unit Testing Framework
» Work mostly with Java but have much interest in JavaScript » Twitter: @hoatle
Samples (Java - JUnit)
编程技术讲解客户端脚本语言 JavaScriptUnit
Samples (Java - JUnit)
编程技术讲解客户端脚本语言 JavaScriptUnit
Samples (JavaScript - QUnit)
编程技术讲解客户端脚本语言 JavaScriptUnit
编程技术讲解客户端脚本语言 JavaScriptUnit
JavaScript Unit Testing Frameworks
编程技术讲解客户端脚本语言 JavaScriptUnit
JavaScript Unit来自Testing Frameworks
编程技术讲解客户端脚本语言 JavaScriptUnit
编程技术讲解客户端脚本语言 JavaScriptUnit
What is JavaScript?
» An implementation of the ECMAScript language standard » The King of client-side scripting for web » A prototype-based object-oriented scripting language » “The world's most misunderstood programming language” (Douglas Crockford)
3rew
演讲完毕,谢谢听讲!
再见,see you again
2020/12/13
编程技术讲解客户端脚本语言 JavaScriptUnit
Samples (JavaScript - QUnit)
编程技术讲解客户端脚本语言 JavaScriptUnit
Test Driven Development (TDD)
» Writes a failing automated test case that defines a desired improvement or new function
相关主题