Your SlideShare is downloading. ×
java script unit testing framework
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

java script unit testing framework

360
views

Published on

Published in: Technology, Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
360
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. JavaScript Unit Testing Hanoi PHP Day 2010 @hoatle
  • 2. JavaScript Unit Testing FrameworkPresenter: Hoat Le Van (aka hoatle)» eXo Social Team Leader» Hanoi PHP Day: > 2008: attendee > 2009: Advanced JavaScript Techniques > 2010: JavaScript Unit Testing Framework» Work mostly with Java but have much interest in JavaScript» Twitter: @hoatle 2
  • 3. Agenda» JavaScript» Unit Testing» JavaScript Unit Testing Frameworks» Fun time for coding 3
  • 4. JavaScript
  • 5. 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 worlds most misunderstood programming language” (Douglas Crockford) ∀ The Name ∀ Bad books ∀ Amateurs ∀ Object Oriented? 5
  • 6. Unit Testing
  • 7. 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 7
  • 8. Samples (Java - JUnit) 8
  • 9. Samples (Java - JUnit) 9
  • 10. Samples (JavaScript - QUnit) 10
  • 11. Samples (JavaScript - QUnit) 11
  • 12. Test Driven Development (TDD)» Writes a failing automated test case that defines a desired improvement or new function» Implements code to pass that test» Finally refactors 12
  • 13. Test Driven Development (TDD) (wikipedia) 13
  • 14. Unit Testing Benefits» To isolate each part of the program and show that the individual parts are correct» Facilitates change» Documentation» Design 14
  • 15. JavaScript Unit Testing Frameworks
  • 16. JavaScript Unit Testing Frameworks 16
  • 17. Fun time for JavaScript Unit Testing and Q&A?

×