Javascript unit testing framework
Upcoming SlideShare
Loading in...5
×
 

Javascript unit testing framework

on

  • 1,980 views

 

Statistics

Views

Total Views
1,980
Views on SlideShare
1,659
Embed Views
321

Actions

Likes
3
Downloads
15
Comments
0

1 Embed 321

http://bloghoctap.com 321

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Javascript unit testing framework Javascript unit testing framework Presentation Transcript

  • JavaScript Unit Testing Hanoi PHP Day 2010 @hoatle
  • JavaScript Unit Testing Framework
    • Presenter: 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
  • Agenda
    • JavaScript
    • Unit Testing
    • JavaScript Unit Testing Frameworks
    • Fun time for coding
  • JavaScript
  • 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)
      • The Name
      • Bad books
      • Amateurs
      • Object Oriented?
  • Unit Testing
  • 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
  • Samples (Java - JUnit)
  • Samples (Java - JUnit)
  • Samples (JavaScript - QUnit)
  • Samples (JavaScript - QUnit)
  • 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
  • Test Driven Development (TDD) (wikipedia)
  • Unit Testing Benefits
    • To isolate each part of the program and show that the individual parts are correct
    • Facilitates change
    • Documentation
    • Design
  • JavaScript Unit Testing Frameworks
  • JavaScript Unit Testing Frameworks
  • Fun time for JavaScript Unit Testing and Q&A?