• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Testing javascript-fronttrends-2010

on

  • 2,369 views

 

Statistics

Views

Total Views
2,369
Views on SlideShare
2,199
Embed Views
170

Actions

Likes
0
Downloads
33
Comments
0

6 Embeds 170

http://notatnik.mekk.waw.pl 158
http://127.0.0.1 4
http://www.linkedin.com 4
https://www.linkedin.com 2
https://notatnik.mekk.waw.pl 1
http://webcache.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Testing javascript-fronttrends-2010 Testing javascript-fronttrends-2010 Presentation Transcript

    • Testing JavaScript Front Trends 2010
    • whoami • Morgan Roderick, @mrgnrdrck • Web developer • First web page in 94, have used <blink>, <marquee>, <font> ... • Mostly freelancing since 2001 • Currently on contract with Nokia Gate5
    • Todays talk • Why do we write code? • Why should we write tests? • Getting started with Unit Tests
    • Why do we write code?
    • Famous fails! • 1985-1987 Therac 25 Medical accelerator, 5 patients dead, several injured • 1994 Intel Pentium floating point division bug (FDIV). $475M • 1998 NASA space probe Mars Climate Orbiter burns up in atmosphere. $327.6M.
    • Moar famous fails • 2000 National Cancer Institute, Panama City, radiation therapy planning software, 8 patients die, 20 severely injured • ... • 2010 Toyota recalls cars, est. $2B • 2010 Twitter suffers XSS attack
    • Why should we test?
    • Pick a test framework TestCase Jasmine JsUnit Crosscheck DOH YUI Test UnitTesting Test.Simple jsUnity JsTestDriver J3Unit JasUnit QUnit JSNUnit screw-unit JSTest FireUnit SinonJS RhinoUnit
    • Pick a test framework TestCase Jasmine JsUnit Crosscheck DOH YUI Test UnitTesting Test.Simple jsUnity JasUnit JsTestDriver J3Unit QUnit JSNUnit JSTest FireUnit screw-unit SinonJS RhinoUnit
    • JsTestDriver TestCase
    • Testing PubSubJS http://github.com/mroderick/PubSubJS
    • PubSubJS Requirements • Subscribe to messages • Publish messages • Unsubscribe from messages
    • PubSubJS Overview
    • subscribe
    • test subscribe
    • unsubscribe
    • test unsubscribe
    • test unsubscribe
    • publish
    • publish contd.
    • test publish
    • test publish
    • test publish
    • test publish
    • Thank you
    • • http://github.com/mroderick/PubSubJS • http://code.google.com/p/js-test-driver/ • http://cjohansen.no/sinon/